protected String marshall(HierarchyTree jaxb) throws XmlException {
return(parser.marshall(jaxb));
}
protected HierarchyTree unmarshall(String xml) throws XmlException {
HierarchyTree jaxb = null;
try {
jaxb = (HierarchyTree)parser.unmarshall(xml);
} catch(ClassCastException e) {
throw new XmlException("The given message was not a HierarchyTree Message - ClassCastException: " + e.getMessage(), e);
}