Details
Description
OsgiCamelContextPublisher holds a Map of Service-References in its doShutdown method this map is cleared.
This could lead to problem when there are still items in the map.
Instead of clearing the map, it should be iterate+remove
Iterator<ServiceRegistration<?>> it = registrations.values().iterator();
while (it.hasNext()) {
it.next().unregister();
it.remove();
}