code: private Map<String, Object> parseRequestParameters(String requestParameters) {
  
          Map<String, Object> parameterMap;
          if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(requestParameters)) {
              parameterMap = new HashMap<String, Object>();
              String[] params = requestParameters.split("&");
              for (int i = 0; i < params.length; i++) {
                  int position = params[i].indexOf("=");
                  if (position >= 0) {
                      String key = params[i].substring(0, position);
                      String value = params[i].substring(position + 1);
                      if (value.contains(",")) {
                          parameterMap.put(key, value.split(","));
                      } else {
                          parameterMap.put(key, value);
                      }
                  }
              }
          } else {
              parameterMap = Collections.<String, Object> emptyMap();
          }
          return parameterMap;
      }
docs: Parses the given request parameters string into a parameter map.<p>
  
  @param requestParameters the request parameters to parse
  
  @return the parameter map