public static String escapeCommand(String command, String... parameters) {
    String[] escapedParameters = new String[parameters.length];
    for (int i = 0; i < escapedParameters.length; i++) {
      escapedParameters[i] = escape(parameters[i]);
    }

    return String.format(command, (Object[])escapedParameters);
  }
public static String escapeCommand(String command, String... parameters)