// Adding discovery to this from camel-osgi
BundleContext bundleContext = FrameworkUtil.getBundle(this.getClass()).getBundleContext();
OsgiServiceRegistry registry = new OsgiServiceRegistry(bundleContext);
ctx.setRegistry(registry);
OsgiCamelContextHelper.updateRegistry(ctx, bundleContext);
ctx.setClassResolver(new OsgiClassResolver(bundleContext));