String wcLink = getLink(repositoryId, objectId.getValue(), Constants.REL_WORKINGCOPY, Constants.MEDIATYPE_ENTRY);
if (wcLink != null) {
link = wcLink;
}
UrlBuilder url = new UrlBuilder(link);
url.addParameter(Constants.PARAM_CHECKIN_COMMENT, checkinComment);
url.addParameter(Constants.PARAM_MAJOR, major);
url.addParameter(Constants.PARAM_CHECK_IN, "true");
// set up object and writer
CmisObjectType object = new CmisObjectType();
object.setProperties(convert(properties));
object.setPolicyIds(convertPolicyIds(policies));