CompositeConnectorProvider compositeConnectorProvider = new CompositeConnectorProvider();
compositeConnectorProvider.setBundleContext(bundleContext);
ConnectorInstanceFactory factory = compositeConnectorProvider.createFactory(provider);
authManager = (AuthenticationDomain) factory.createNewInstance("authProvider");
DefaultAuthenticationProviderStrategy strategy = new DefaultAuthenticationProviderStrategy();
strategy.setUtilsService(new DefaultOsgiUtilsService(bundleContext));
Hashtable<String, Object> props = new Hashtable<String, Object>();
props.put("composite.strategy.name", "authManagerStrategy");
registerService(strategy, props, CompositeConnectorStrategy.class);