public Set<Party> getChildParties(Class childPartyClass) { final Set<Party> result = new HashSet<Party>(); for (final Accountability accountability : getChildsSet()) { if (accountability.getChildParty().getClass().equals(childPartyClass)) { result.add(accountability.getChildParty()); } } return result;
public List<Party> getChildParties(Class childPartyClass) { final List<Party> result = new ArrayList<Party>(); for (final Accountability accountability : getChildsSet()) { if (accountability.getChildParty().getClass().equals(childPartyClass)) { result.add(accountability.getChildParty()); } } return result;
    public Set<Party> getChildParties(Class childPartyClass) {        final Set<Party> result = new HashSet<Party>();        for (final Accountability accountability : getChildsSet()) {            if (accountability.getChildParty().getClass().equals(childPartyClass)) {                result.add(accountability.getChildParty());            }        }        return result;    }