code: public boolean hasSearchPages() {
  		try {
  			return this.getClass().getMethod("createSearchPage", new Class<?>[] { String.class }).getDeclaringClass() != Application.class;
  		} catch (NoSuchMethodException | SecurityException e) {
  			throw new RuntimeException(e);
  		}
  	}
docs: note: for production you should override this method to avoid continuous
  use of reflection
  
  @return true if the application overrides createSearchPage meaning the
  application provides a search page