code: public ModelAndView getRules(HttpServletRequest request, HttpServletResponse response, boolean isHead) throws UnsupportedEncodingException, ParseException {
          String prefix = request.getParameter("prefix");
          if (prefix != null) {
              return new ModelAndView(view, "object", ruleDao.getRulesWithSurtPrefix(prefix));
          }
  
          String surt = request.getParameter("surt");
          if (surt != null) {
              return new ModelAndView(view, "object", ruleDao.getRulesWithExactSurt(surt));
          }
          
  		List<Rule> rules = null;
          String modifiedAfter = request.getParameter("modifiedAfter");
                  
          String who = request.getParameter("who");
          
          if (modifiedAfter != null || who != null) {
          	rules = ruleDao.getRulesModifiedAfter(modifiedAfter, who, view.getCustomRestrict());
          }
          
          if (rules == null) {
          	rules = ruleDao.getAllRules();
          }
          
          response.addIntHeader(HttpRuleDao.ORACLE_NUM_RULES, rules.size());
          
      	return new ModelAndView(view, "object", rules);        
      }
docs: protected SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");