@Override
            public boolean isUserInRole(String role) {
                return principal.getRoles().contains(role);
            }
Wrap the request to provide the principal.
@param request the request
@param principal the principal
common/servlet/src/main/java/io/apiman/common/servlet/AuthenticationFilter.java