if (delta.getParentChanges().hasNewPrimaryParent()) {
FileableCmisObject object = (FileableCmisObject)cmisObject;
CmisObject source = object.getParents().get(0);
CmisObject destination = session.getObject(delta.getParentChanges().getNewPrimaryParent());
object.move(source, destination);
// rename temporary name to a original
String name = object.getName();
if (name.endsWith("-temp")) {
rename(object, name.replace("-temp", ""));