because the hash "serviceTemplates_exported" is made for templates import, and it is put at line 705, so every type of service ("normal" or template) will be inserted in this hash,
because every type of service is inserted in this hash, condition on line 505 forbides to add more than one service with the same name (as the condition is false as soon as you inserted one). And just before, it tests if the service "has to be exported" and sets the flag "is_service_to_export " if so,
because before lines 597 et 603, it's really template insert.
This way I don't have just one service of each, but all my services.