new MakeFileCommand(file).execute();
if (file.isDirectory()) {
throw new IllegalStateException("file[" + file.getName() + "] is a directory!");
}
new WriteBytesToFileCommand(file, content).execute();
} catch (Exception e) {
throw Lang.uncheck(e);
}
}