Holder<String> checkOutId = new Holder<String>(parser.getId());
service.checkOut(repositoryId, checkOutId, null, null);
ObjectInfo objectInfo = service.getObjectInfo(repositoryId, checkOutId.getValue());
if (objectInfo == null) {
throw new CmisRuntimeException("Object Info is missing!");
}
ObjectData object = objectInfo.getObject();
if (object == null) {
throw new CmisRuntimeException("Object is null!");
}
if (object.getId() == null) {
throw new CmisRuntimeException("Object Id is null!");
}
// set headers
UrlBuilder baseUrl = compileBaseUrl(request, repositoryId);
String location = compileUrl(baseUrl, RESOURCE_ENTRY, object.getId());