logo = currentNode.getTextContent().trim();
}
}
}
if(title == null){
throw new ConfigurationException("title not set in configfile");
}
if(creator == null){
throw new ConfigurationException("creator not set in configfile");
}
ServiceDescription.Builder builder =
new ServiceDescription.Builder(title,
"eu.planets_project.ifr.services.migrate.Migrate");
builder.author(creator);
builder.classname(canonicalName);
builder.description(description);
builder.identifier(identifier);
builder.instructions(instructions);
builder.version(version);
builder.tool(tool);
builder.serviceProvider(publisher);
builder.paths(paths.toArray(new eu.planets_project.services.datatypes.MigrationPath[paths.size()]));
if(furtherinfo != null){
try {
builder.furtherInfo(new URI(furtherinfo));
} catch (URISyntaxException e) {
throw new ConfigurationException("furtherInfo not set to valid value", e);
}
}
if(logo != null){
try {
builder.logo(new URI(logo));
} catch (URISyntaxException e) {
throw new ConfigurationException("logo not set to valid value", e);
}
}
return builder.build();