code: public static Map<String, QueryParameter> toMap(List<QueryParameter> parameters) {
          Map<String, QueryParameter> map = new HashMap<String, QueryParameter>();
          for (QueryParameter qp : parameters) {
              map.put(qp.getName(), qp);
          }
          return map;
      }
docs: Convert a list of QueryParameter object to a map  where the key is the parameter name
  and the value is the parameter
  
  @param parameters list of parameters
  @return map of parameters