class RsrcCtxWrapper implements ResourceContext {

    public void logPrincipal(final Principal principal) {
        if (principal == null) {
            return;
        }
        ctx.request().setAttribute(ServerCommonConsts.REQUEST_PRINCIPAL, principal.getFullName());
        logAuthorityId(principal.getAuthority());
    }

      RsrcCtxWrapper(HttpServletRequest request, HttpServletResponse response,
                   Http.AuthorityList authList, boolean optionalAuth,
                   Authorizer authorizer, Object timerMetric, String apiName);

}