modifies the write method of the CatalogFormat. it returns a boolean value now.
Furthere this commit modifies the MessageCatalog method writeCatalog due to the new change