public void startDocument(XMLMapping selfRecordMapping) throws SAXException {
try {
XMLDescriptor xmlDescriptor = (XMLDescriptor) treeObjectBuilder.getDescriptor();
if(xmlDescriptor.isSequencedObject()) {
unmarshalContext = new SequencedUnmarshalContext();
} else {
unmarshalContext = ObjectUnmarshalContext.getInstance();
}
Object object = this.getXMLReader().getCurrentObject(session, selfRecordMapping);