} else {
throw new CmisConstraintException("Error: Can't cancel checkout, Document " + getId()
+ " is not checked out.");
}
DocumentVersion pwc = getPwc();
if (null != content)
pwc.setContent(content, false);
if (null != properties && null != properties.getProperties())
pwc.setCustomProperties(properties.getProperties());
pwc.setCheckinComment(checkinComment);
pwc.commit(isMajor);
}