} else {
localPath = Text.getName(jcrPath);
}
}
if (jcrPath == null || jcrPath.length() == 0 || !jcrPath.startsWith("/")) {
throw new ExecutionException("JCR path needs to be absolute: " + jcrPath);
}
File localFile = app.getPlatformFile(localPath, false);
if (localFile.isFile()) {
throw new ExecutionException("Local file must be a directory: " + localFile.getPath());
}
if (!localFile.exists()) {
localFile.mkdir();
}
VltContext vCtx = app.createVaultContext(localFile);