public boolean isUserInRole(String role) {
        if (overrideIsUserInRole) {
            if (roles != null) {
                for (String role1 : roles) {
                    if (role1 != null && role1.trim().length() > 0) {
                        String userRole = role1.trim();
                        if (userRole.equals(role)) {
                            return true;
                        }
                    }
                }
            }
            return false;
        }
        else {
            return false;
        }
    }
Returns a boolean indicating whether the authenticated user
 is included in the specified logical "role".
container-core/src/main/java/com/yahoo/jdisc/http/filter/DiscFilterRequest.java