code: public Map<String, String> getParamMap(String params) {
      Map<String, String> result = new HashMap<String, String>();
      String[] paramlist = params.split("&");
      for (int i = 0; i < paramlist.length; i++) {
        String[] parts = paramlist[i].split("=");
        if (parts.length == 2)
          result.put(parts[0], parts[1]);
      }
      return result;
    }
docs: get a Map of parameter from a & delimited parameter list
  
  @param params
  - the list of parameters
  @return the map FIXME - should check that split creates and even number of
  entries - add test case for this