* @return
*/
public Map<String,String> getAllAvailableTBServiceTemplates(){
Map<String,String> ret = new TreeMap<String,String>();
ExperimentBean expBean = (ExperimentBean)JSFUtil.getManagedObject("ExperimentBean");
ServiceTemplateRegistry registry = ServiceTemplateRegistryImpl.getInstance();
Collection<TestbedServiceTemplate> templates = new Vector<TestbedServiceTemplate>();
//determine which typeID has been selected
//simple migration experiment
if(expBean.getEtype().equals("experimentType.simpleMigration")){
//mapping between service type ID and experiment type ID
templates = registry.getAllServicesWithType(
TestbedServiceTemplate.ServiceOperation.SERVICE_OPERATION_TYPE_MIGRATION
);
}
//simple characterisation experiment
if(expBean.getEtype().equals("experimentType.simpleCharacterisation")){
templates = registry.getAllServicesWithType(
TestbedServiceTemplate.ServiceOperation.SERVICE_OPERATION_TYPE_CHARACTERISATION
);
}
//test if at least one template exists
if((templates!=null)&&(templates.size()>0)){