*/
public HostDescription buildHostDescription(SchemaType schemaType, String hostName, String hostAddress)
throws AiravataAPIInvocationException {
if (!validateHostAddress(hostAddress)) {
throw new AiravataAPIInvocationException("Invalid host address. Host address should be "
+ "either an IP address or a valid host name.");
}
HostDescription hostDescription = new HostDescription(schemaType);
hostDescription.getType().setHostName(hostName);