private final Map<String, Entry<ServiceReference,EnhancementEngine>> engines;
public EnhancementEnginesRootResource(@Context ServletContext context) {
// bind the job manager by looking it up from the servlet request context
EnhancementEngineManager engineManager = ContextHelper.getServiceFromContext(EnhancementEngineManager.class, context);
if(engineManager == null){
throw new WebApplicationException(new IllegalStateException(
"The required EnhancementEngineManager Service is not available!"));
}
engines = buildEnginesMap(engineManager);