code: public static Map<String, String[]> params(){
          SimpleHash params = new SimpleHash(RequestContext.getHttpRequest().getParameterMap());
          if(getId() != null)
              params.put("id", new String[]{getId()});
  
          Map<String, String> userSegments = RequestContext.getRequestVo().getUserSegments();
  
          for(String name:userSegments.keySet()){
              params.put(name, new String[]{userSegments.get(name)});
          }
  
          return params;
      }
docs: Returns an instance of <code>java.util.Map</code> containing parameter names as keys and parameter values as map values.
  The keys in the parameter map are of type String. The values in the parameter map are of type String array.
  
  @return an instance <code>java.util.Map</code> containing parameter names as keys and parameter values as map values.
  The keys in the parameter map are of type String. The values in the parameter map are of type String array.