}
private static Statement addUserAndAuthorizeSudo(String user,
String publicKey, String privateKey, Statement statement) {
return new InitBuilder("setup-" + user,// name of the script
"/tmp",// working directory
"/tmp/logs",// location of stdout.log and stderr.log
ImmutableMap.of("newUser", user, "defaultHome", "/home/users"), // variables
ImmutableList.<Statement> of(
createUserWithPublicAndPrivateKey(user, publicKey, privateKey),