throw new RuntimeException("Meta File Error, parent is not a folder");
}
File newFile = retrieveMetaFile(parent, name);
FileLocker locker = new FileLocker(newFile);
try {
locker.lock();
} catch (IOException e) {
Logger logger = LoggerFactory.getLogger("org.eclipse.orion.server.config"); //$NON-NLS-1$
logger.error("Meta File Error, file IO error, could not lock the file", e); //$NON-NLS-1$
throw new RuntimeException("Meta File Error, file IO error, could not lock the file", e);
}