@Override
 public ResultSet getResultSet(Db db, Map<String, List<String>> params) {
   String windowParam = QueryStringParameters.getWindowParam(params);
   if (windowParam != null) {
     if (windowParam.equals(QueryStringParameters.WINDOW_PARAM_ALL)) {
       return db.runRetrievalPreparedStatement(QUERY_ALL, predicate);
     } else if (windowParam.equals(QueryStringParameters.WINDOW_PARAM_LAST)) {
       return db.runRetrievalPreparedStatement(QUERY_LAST, predicate);
     }
     return null;
   }
   return db.runRetrievalPreparedStatement(QUERY_ALL, predicate);
 }
 protected ResultSet getResultSet(Db db, Map<String, List<String>> params) {
   List<String> list = params.get(FAULTID_PARAM);
   String faultId = null;
   if ((list != null) && list.size() == 1) {
     faultId = list.get(0);
   }
   if (faultId == null) {
     return null;
   }
   return db.runRetrievalPreparedStatement(QUERY, Integer.parseInt(faultId));
 }