public Object unmarshal(Source source, Class clazz) {
try {
Document document = null;
document = parser.parse(source);
return xmlToObject(new DOMRecord(document), clazz);
} catch (XMLPlatformException e) {
throw XMLMarshalException.unmarshalException(e);
}
}