class ZMSUtils {

    public static List<String> convertRoleMembersToMembers(List<RoleMember> members) {
        List<String> memberList = new ArrayList<>();
        if (members == null) {
            return memberList;
        }
        for (RoleMember member: members) {
            // only add active members to membername list. Active flag is optional for default value
            if (member.getActive() != Boolean.FALSE) {
                memberList.add(member.getMemberName());
            }
        }
        return memberList;
    }

}