File parent = file.getParentFile();
File propFile = getPropertiesFile(file);
newFile = new File(parent, newName);
if (!file.renameTo(newFile)) {
// if something went wrong, throw an exception
throw new CmisUpdateConflictException("Could not rename object!");
} else {
// set new id
objectId.setValue(getId(newFile));
// if it is a file, rename properties file too