code: Map buildSortParamMap(List sorts) {
          if(sorts == null || sorts.size() == 0)
              return null;
  
          String encoded = encodeSorts(sorts);
          if(encoded == null)
              return null;
          else {
              HashMap params = new HashMap();
              params.put(PARAM_KEY_SORT, new String[]{encoded});
              return params;
          }
      }
docs: Build the sort parameter map given this list of {@link Sort} instances.  Note, the query parameters returned
  here are <b>not</b> URL encoded.  The map contains key / value pairs as (String, String[]).
  @param sorts the sorts
  @return a map containing the sort query parameters