Extracted the formatter methods into a formatter class.
Also changed the 'client' tags to 'net' tags in the config xml file.