if (this.field == null) {
session.getIntegrityChecker().handleError(DescriptorException.serializedObjectPolicyFieldNotSet(this.descriptor));
return;
}
if (this.descriptor.isChildDescriptor()) {
SerializedObjectPolicy parentPolicy = this.descriptor.getInheritancePolicy().getParentDescriptor().getSerializedObjectPolicy();
if (parentPolicy != null && parentPolicy.getField() == this.field) {
return;
}
}
this.field = this.descriptor.buildField(this.field);
this.descriptor.getFields().add(this.field);