code: protected static MethodParameter[] params(Object... params) {
          if (params.length == 0) return null;
          if (params.length != 1 && params.length % 2 != 0) throw new IllegalParametersException("Incorrect number of params");
          if (params.length == 1) {
              MethodParameter[] ret = new MethodParameter[1];
              ret[0] = new MethodParameter(params[0].toString(), Type.STRING);
              return ret;
          }
          MethodParameter[] ret = new MethodParameter[params.length / 2];
          for (int i = 0; i < ret.length; i++) {
              String name = (String) params[i * 2];
              Type type = (Type) params[i * 2 + 1];
              ret[i] = new MethodParameter(name, type);
          }
          return ret;
      }
docs: Shortcut for creating an array of parameters. The values passed should be the parameter name and the parameter
  type, such as "text", Type.STRING, "index", Type.NUMBER. If only one item is passed it is assumed to be of type
  STRING.
  
  @param params The array of parameter names and types
  @return The array of created MethodParameters