for(HostDescription host:hostList){
// This will avoid the changes user is doing to one of the predefined Hosts during a restart of the system
AiravataRegistry registry = jcrComponentRegistry.getRegistry();
if(registry.getHostDescription(host.getType().getHostName()) == null){
log.info("Saving the predefined Host: " + host.getType().getHostName());
registry.saveHostDescription(host);
}
}
} catch (RepositoryException e) {
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
} catch (URISyntaxException e) {