public void startSystemServices(StartContext startContext, BundleContext systemContext) {
NamingStore namingStore = injectedNamingStore.getOptionalValue();
if (namingStore != null) {
// Register the {@link InitialContextFactoryBuilder} service
String[] classes = new String[] {javax.naming.spi.InitialContextFactoryBuilder.class.getName(), InitialContextFactoryBuilder.class.getName()};
systemContext.registerService(classes, new InitialContextFactoryBuilder(), null);
// Register the JNDI service listener
jndiServiceListener = new JNDIServiceListener(systemContext);
try {
String filter = "(" + Constants.OBJECTCLASS + "=" + ObjectFactory.class.getName() + ")";