if (callUrl != CallUrl.ROOT) {
return;
}
ObjectData object = null;
if (objectId != null) {
object = service.getObject(repositoryId, objectId, null, false, IncludeRelationships.NONE, "cmis:none",
false, false, null);
} else {
object = service.getObjectByPath(repositoryId, getPath(request), null, false, IncludeRelationships.NONE,
"cmis:none", false, false, null);
}
if (context instanceof CallContextImpl) {
((CallContextImpl) context).put(CONTEXT_OBJECT_ID, object.getId());
((CallContextImpl) context).put(CONTEXT_OBJECT_TYPE_ID,
getProperty(object, PropertyIds.OBJECT_TYPE_ID, String.class));
((CallContextImpl) context).put(CONTEXT_BASETYPE_ID,
getProperty(object, PropertyIds.BASE_TYPE_ID, String.class));
}