public static String escapeSpecialCharacter(String command) {
    StringBuilder builder = new StringBuilder();
    for (char c : command.toCharArray()) {
      if (SPECIAL_CHARACTER.indexOf(c) != -1) {
        builder.append("\\");
      }
      builder.append(c);
    }
    return builder.toString();
  }
@Test
  public void testEscapeSpecialCharacters() {
    String cmd = "{}.";
    assertEquals("\\{\\}\\.", InterpreterLauncher.escapeSpecialCharacter(cmd));
  }