@Override public void start(BundleContext bundleContext) throws Exception { XmppProtocolActivator.bundleContext = bundleContext; SmackConfiguration.setDefaultReplyTimeout(15000); // if there is a parsing error, do not break the connection to // the server(the default behaviour) as we need it for // the other conferences SmackConfiguration.setDefaultParsingExceptionCallback( new ExceptionLoggingCallback()); Socks5Proxy.setLocalSocks5ProxyEnabled(false); registerXmppExtensions(); XmppProviderFactory focusFactory = new XmppProviderFactory( bundleContext, ProtocolNames.JABBER); Hashtable<String, String> hashtable = new Hashtable<>(); // Register XMPP hashtable.put(ProtocolProviderFactory.PROTOCOL, ProtocolNames.JABBER); focusRegistration = bundleContext.registerService( ProtocolProviderFactory.class.getName(), focusFactory, hashtable); }