if (samplesDescConfig.length > 0) {
// now load the cloud services configuration
Map<String, CloudServiceConfig> cloudServiceConfigs = CloudServiceConfigParser.
loadCloudServicesConfiguration().getCloudServiceConfigs();
for (SampleConfig sample : samplesDescConfig) {
SampleInformation information = new SampleInformation();
information.setFileName(sample.getFileName());
information.setSampleName(sample.getName());
String[] requiredServices = sample.getCloudServices();
information.setRequiredServices(requiredServices);
List<String> serviceEPRs = new LinkedList<String>();
for (String service : requiredServices) {
serviceEPRs.add(cloudServiceConfigs.get(service).getLink());
}
information.setServiceEPRs(serviceEPRs.toArray(new String[serviceEPRs.size()]));
sampleInformation.add(information);
}
}
}