code: boolean canSearchConfigFile(ServletContext servletContext) {
          String searchConfigFile = servletContext.getInitParameter("searchConfigFile");
          if (searchConfigFile == null || searchConfigFile.equals("")) {
              return false;
          } else if ("true".equals(searchConfigFile)) {
              return true;
          }
          return false;
      }
docs: Can search config file.
  
  @param servletContext the servlet context
  @return true, if successful