private static void addArgument(String args, int start, int end, List<Object> argList, List<Class<?>> paramTypes) {
    String arg = args.substring(start, end);

    // only supports strings and integers
    if (arg.contains("\"")) {
      argList.add(arg.substring(1, arg.length() - 1));
      paramTypes.add(String.class);
    } else {
      Integer number = Integer.parseInt(arg);
      argList.add(number);
      paramTypes.add(Integer.TYPE);
    }
  }
Extract an argument from the given string and add it to the given arg and param type collections.
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AbstractPropertyProvider.java