CmisObjectType resultJaxb = convert(policy);
if (resultJaxb == null) {
return;
}
ObjectInfo info = service.getObjectInfo(repositoryId, policy.getId());
if (info == null) {
throw new CmisRuntimeException("Object Info not found!");
}
// start
entry.startEntry(false);
// write the object
entry.writeObject(policy, info, null, null, null, null);
// write links
UrlBuilder selfLink = compileUrlBuilder(baseUrl, RESOURCE_POLICIES, objectId);
selfLink.addParameter(Constants.PARAM_POLICY_ID, info.getId());
entry.writeSelfLink(selfLink.toString(), null);
// we are done
entry.endEntry();
}