protected void addMember(Community community, String id, String role) throws Exception {
CommunityService communityService = getCommunityService();
Member member = new Member(communityService, id);
member.setRole(role);
communityService.addMember(community.getCommunityUuid(), member);
}
protected boolean hasMember(Community community, String id) throws Exception {
CommunityService communityService = getCommunityService();
EntityList<Member> memberList = communityService.getMembers(community.getCommunityUuid());