}
public static List<DeliveryChannel> getDeliveryChannels(PartyInfo partyInfo, String role, Service service, String action)
{
List<DeliveryChannel> result = new ArrayList<DeliveryChannel>();
ServiceBinding serviceBinding = getServiceBinding(partyInfo, role, service);
if (serviceBinding != null)
for (CanSend canSend : serviceBinding.getCanSend())
if (action.equals(canSend.getThisPartyActionBinding().getAction()))
for (JAXBElement<Object> o : canSend.getThisPartyActionBinding().getChannelId())
result.add((DeliveryChannel)o.getValue());
return result;
}