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