ISXERecordFactory factory = document.getController().getRecordFactory();
String parentRid = getString(RecordEntry.PARENT);
if (parentRid == null) {
if (!document.isEmpty())
throw new MalformedRecordException(
"Received non-root record without parent: "
+ getString(RecordEntry.RID));
}
String name = getString(RecordEntry.NAME);