setupCamelContext(bundleContext, camelContextId);
}
protected void createCamelContext(final BundleContext bundleContext, final Map<String, String> props) {
if (null != bundleContext) {
context = new OsgiDefaultCamelContext(bundleContext, registry);
// Setup the application context classloader with the bundle classloader
context.setApplicationContextClassLoader(new BundleDelegatingClassLoader(bundleContext.getBundle()));
// and make sure the TCCL is our classloader
Thread.currentThread().setContextClassLoader(context.getApplicationContextClassLoader());
} else {