if (importUrl) {
nodeData = loadUrl(new URL(data));
}
try {
CreateBuilder createBuilder = curator.create();
if (recursive) {
createBuilder.creatingParentsIfNeeded();
}
BackgroundPathAndBytesable<String> create = createBuilder.withMode(mode).withACL(acls);
if (nodeData == null) {
create.forPath(path);
} else {
create.forPath(path, nodeData.getBytes());
}