String msg = "Direct access not allowed for mounted targets";
// the target was mounted, but we got here via another path
// : deny the request
log.error(msg + " [request=" + requestCycle.getRequest() + ",target=" + target +
",session=" + Session.get() + "]");
throw new AbortWithWebErrorCodeException(HttpServletResponse.SC_FORBIDDEN, msg);
}
}
// (WICKET-1356) in case no target was found, return null here. RequestCycle will deal with it
// possible letting wicket filter to pass the request down the filter chain