code: static void printFilterInfo(PrintWriter out,
        String poolFilter, String userFilter, String showAllLink) {
      if (userFilter != null || poolFilter != null) {
        StringBuilder customizedInfo = new StringBuilder("Only showing ");
        if (poolFilter != null) {
          customizedInfo.append("pool(s) " + poolFilter);
        }
        if (userFilter != null) {
          if (customizedInfo.length() != 0) {
            customizedInfo.append(" and ");
          }
          customizedInfo.append("user(s) " + userFilter);
        }
        out.printf("<h3>%s <a href=\"%s\">(show all pools and users)</a></h3>",
            customizedInfo.toString(), showAllLink);
      }
    }
docs: Print the filter information for pools and users
  @param out Where the output is dumped
  @param poolFilter Comma separated list of pools, null for none
  @param userSet Comma separated list of users, null for none
  @param showAllLink Link to show everything