code: public static boolean checkResourceRequest(final HttpServletRequest request,
  			final HttpServletResponse response)
  			throws ServletException, IOException {
  		// Static resource
  		if (isStaticResourceRequest(request)) {
  			handleStaticResourceRequest(request, response);
  			return false;
  		} else if (isThemeResourceRequest(request)) {  // Theme resource
  			handleThemeResourceRequest(request, response);
  			return false;
  		}
  
  		String method = request.getMethod();
  
  		if ("HEAD".equals(method)) {
  			response.setContentType(WebUtilities.CONTENT_TYPE_XML);
  			return false;
  		} else if (!"POST".equals(method) && !"GET".equals(method)) {
  			response.setStatus(HttpServletResponse.SC_NOT_IMPLEMENTED);
  			return false;
  		}
  
  		return true;
  	}
docs: Check if the request is for a resource (eg static, theme...).
  
  @param request the http servlet request.
  @param response the http servlet response.
  @return true to continue processing
  @throws ServletException a servlet exception
  @throws IOException an IO Exception