ServiceTemplateRegistry registry = ServiceTemplateRegistryImpl.getInstance();
Collection<TestbedServiceTemplate> evalSerTemplates = registry.getAllServicesWithType(TestbedServiceTemplate.ServiceOperation.SERVICE_OPERATION_TYPE_EVALUATION);
if((evalSerTemplates!=null)&&(evalSerTemplates.size()>0)){
Iterator<TestbedServiceTemplate> itTemplates = evalSerTemplates.iterator();
//The template which registeres the BMGoal mapping
EvaluationTestbedServiceTemplateImpl evalSerTemplate = (EvaluationTestbedServiceTemplateImpl) itTemplates.next();
//all supported BM goalsIDs of this ServiceTemplate
Collection<String> lBMGoalIDs = evalSerTemplate.getAllMappedBenchmarkGoalIDs();
if((lBMGoalIDs!=null)&&(lBMGoalIDs.size()>0)){
Iterator<String> itBMGoalIDs = lBMGoalIDs.iterator();
while(itBMGoalIDs.hasNext()){
String bmGoalID = itBMGoalIDs.next();
//add the bmGoal and it's template