When using AbstractBindingConsumer and onSessionInitialized there is a need to resolve dependencies. Right now I am using ServiceHelper.getInstance to obtain a reference to the object that I depend on. If this object has not been started this becomes a null reference when the getInstance function is called. I have seen code that uses felix dependency manager in Activators that are not derived from AbstractBindingConsumer.
What is the recommended way to both register and resolve dependencies(from other bundles) when your activator is derived from AbstractBindingAwareConsumer?