@Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse,
            FilterChain filterChain) throws IOException, ServletException {

        HttpServletRequest request = (HttpServletRequest) servletRequest;
        String path = getRequestPath(request);
        if(path.startsWith(RESOURCE_PREFIX)) {
            filterChain.doFilter(servletRequest, servletResponse);
        } else {
            RequestDispatcher dispatcher = request.getRequestDispatcher(PAGE_PREFIX + path);
            dispatcher.forward(servletRequest, servletResponse);
        }
    }