There is also a second problem with how the registry is being managed within the OsgiDefaultCamelContext. OsgiServiceRegistry is currently extends LifecycleStrategySupport which is suppose to unload the serviceReferenceQueue onContextStop. However the registry is never getting added to the CamelContext to manage the Lifecycle because the overridden createRegistry method in OsgiDefaultCamelContext is not being called. This is because the registry is being set in the constructor of OsgiDefaultCamelContext with
this calls the DefaultCamelContext implementation of createRegistry which does not add the registry to lifecyclemanagement since
is never called.
CAMEL-12969 for screen captures.