OsgiCamelContextHelper.updateRegistry(ctx, bundleContext);
ctx.setClassResolver(new OsgiClassResolver(bundleContext));
ctx.setFactoryFinderResolver(new OsgiFactoryFinderResolver());
ctx.setPackageScanClassResolver(new OsgiPackageScanClassResolver(bundleContext));
ctx.setComponentResolver(new OsgiComponentResolver());
ctx.setLanguageResolver(new OsgiLanguageResolver());
OsgiAnnotationTypeConverterLoader typeConverterLoader = new OsgiAnnotationTypeConverterLoader(new OsgiPackageScanClassResolver(bundleContext));
try {
typeConverterLoader.load(ctx.getTypeConverterRegistry());