@Override
public List<EnhancementEngine> getActiveEngines() {
//This implementation return the list of active engined for the default
//Chain in the order they would be executed
Chain defaultChain = chainManager.getDefault();
if(defaultChain == null){
throw new IllegalStateException("Currently no enhancement chain is " +
"active. Please configure a Chain or enable the default chain");
}
Graph ep;
try {
ep = defaultChain.getExecutionPlan();
} catch (ChainException e) {
throw new IllegalStateException("Unable to get Execution Plan for " +
"default enhancement chain (name: '"+defaultChain.getName()+
"'| class: '"+defaultChain.getClass()+"')!",e);
}
return ExecutionPlanHelper.getActiveEngines(engineManager,ep);
}