if (!$file instanceof AbstractFile) {
throw new \RuntimeException('The given file is not of type AbstractFile.', 1384209025);
}
$file->updateProperties(array('identifier' => $newIdentifier));
} else {
$tempPath = $file->getForLocalProcessing();
if (!$file instanceof AbstractFile) {
throw new \RuntimeException('The given file is not of type AbstractFile.', 1384209025);
}
$file->updateProperties(array('identifier' => $newIdentifier));
} else {
$tempPath = $file->getForLocalProcessing();