BACKLOG-3706 - Make Gateway module work with OSGi. Provided working sample of a mail decoder: parses incoming mail from test6.jahia Gmail account and created jnt:mainContent nodes from it under /sites/systemsite/contents.