//-- check for name mismatches
if (unmarshaller != null) {
if (!name.equals(unmarshaller.elementName())) {
String err = "missing end element for ";
err += unmarshaller.elementName();
throw new SchemaException(err);
}
}
//-- have unmarshaller perform any necessary clean up
unmarshaller.finish();