private ServiceRegistration<CorrelationKeyFactory> _correlationKeyFactoryService;
@Override
public void start(final BundleContext context) throws Exception {
_correlationKeyFactoryService = context.registerService(CorrelationKeyFactory.class,
new JPACorrelationKeyFactory(), new Hashtable<String, Object>());
ServiceRegistryImpl.getInstance().registerLocator(CorrelationKeyFactory.class, new Callable<CorrelationKeyFactory>() {
@Override
public CorrelationKeyFactory call() throws Exception {
return context.getService(_correlationKeyFactoryService.getReference());
}