for (CanReceive canReceive : role.getServiceBinding().getCanReceive())
if (action.equals(canReceive.getThisPartyActionBinding().getAction()))
{
PartyInfo p = new PartyInfo();
p.getPartyId().addAll(partyInfo.getPartyId());
CollaborationRole r = new CollaborationRole();
r.setRole(role.getRole());
r.setServiceBinding(new ServiceBinding());
r.getServiceBinding().setService(role.getServiceBinding().getService());
r.getServiceBinding().getCanReceive().add(canReceive);
p.getCollaborationRole().add(r);
return p;
}
return null;
}