public boolean isMandatory() {
<BUG>return node.getBoolean(JcrConstants.JCR_MANDATORY);
}</BUG>
@Override
public int getOnParentVersion() {
<BUG>try {
return OnParentVersionAction.valueFromName(node.getString(

"jcr:onParentVersion",
OnParentVersionAction.ACTIONNAME_COPY));
} catch (IllegalArgumentException e) {
log.warn("Unexpected jcr:onParentVersion value", e);</BUG>
return OnParentVersionAction.COPY;

public boolean isMandatory() {
return getBoolean(JcrConstants.JCR_MANDATORY);
}
@Override
public int getOnParentVersion() {
String action = getString(JcrConstants.JCR_ONPARENTVERSION);
if (action != null) {
return OnParentVersionAction.valueFromName(action);
} else {
return OnParentVersionAction.COPY;
