List<BaseResource> reses = r.getResources();
for (BaseResource res : reses) {
Object parentVisitController = threadScope.get().get(
RESPONSE_CUR_VISIT_CTRL);
try {
IResourceVisitController visitController = res
.getVisitControler();
// Buffer the current Resource Define Root to thread local
// variant map. If null, not
// set
// to null, just use parent Resource Define's Visit Controller.
if (visitController != null)
threadScope.get().put(RESPONSE_CUR_VISIT_CTRL,
visitController);
HttpServletRequest req = (HttpServletRequest) threadScope.get()
.get(RESPONSE_REQ);
if (visitController == null || visitController.canRead(req)) {
boolean found = visitRes(res, reqPath, null, null, null);
if (found)
break;
}
} finally {