public Set<Role> getParticipantRoles(String pid) { Participant p = participantMap.get(pid); return (p != null) ? p.getRoles() : null; }