public boolean preHandle(HttpServletRequest request,
HttpServletResponse response, Object handler) throws IOException, ServletException {
if (handler instanceof HttpRequestHandler) {
HttpRequestHandler resourcehandler = ((HttpRequestHandler) handler);
resourcehandler.handleRequest(request, response);
//break interceptor chain
return false;
} else {
LOGGER.warn("handler can not be cast to HttpRequestHandler. It is of class " +
handler.getClass().getCanonicalName());