if (! functionality.isPrincipal()) { continue; }
    private Functionality getFunctionality(HttpServletRequest servletRequest) {        String requestedPath = servletRequest.getServletPath();        if (hasTestingPrefix(servletRequest)) {            requestedPath = requestedPath.substring(getTestingPrefix().length());        }                for (Functionality functionality : RootDomainObject.getInstance().getFunctionalities()) {            String matchPath = functionality.getMatchPath();                        if (matchPath != null && matchPath.equals(requestedPath)) {                return functionality;            }        }        return null;    }