*/
VersionManager manager = session.getVersionManager();
if (fullVersionable) {
if (propName.equals(NameConstants.JCR_VERSIONHISTORY)) {
// jcr:versionHistory
VersionHistoryInfo history =
manager.getVersionHistory(session, newState);
InternalValue value = InternalValue.create(
history.getVersionHistoryId().getUUID());
newChildState.setValues(new InternalValue[] { value });
} else if (propName.equals(NameConstants.JCR_BASEVERSION)
|| propName.equals(NameConstants.JCR_PREDECESSORS)) {
// jcr:baseVersion or jcr:predecessors
VersionHistoryInfo history =
manager.getVersionHistory(session, newState);
InternalValue value = InternalValue.create(
history.getRootVersionId().getUUID());
newChildState.setValues(new InternalValue[] { value });
} else if (propName.equals(NameConstants.JCR_ISCHECKEDOUT)) {
// jcr:isCheckedOut
newChildState.setValues(new InternalValue[]{InternalValue.create(true)});
}