class AuthzHelper {

    public static boolean isMemberOfRole(Role role, final String member, GroupMembersFetcher groupMembersFetcher) {

        final List<RoleMember> members = role.getRoleMembers();
        if (members == null) {
            return false;
        }

        return checkRoleMemberValidity(members, member, groupMembersFetcher);
    }

}