moved static methods from MailboxFactoryActivator to the new class Osgi.