public static String parseHostDesc(String hostDescAsStr) throws XregistryException {
try {
HostDescriptionType hostDesc = HostDescriptionDocument.Factory.parse(
new StringReader(hostDescAsStr)).getHostDescription();
hostDesc.validate();
return hostDesc.getHostName();
} catch (XmlException e) {
throw new XregistryException(e);
} catch (IOException e) {
throw new XregistryException(e);