/**
* @see org.andromda.metafacades.uml.Service#getMessagingDestinations()
*/
protected Collection handleGetMessagingDestinations()
{
final Set destinations = new LinkedHashSet();
CollectionUtils.forAllDo(this.getOperations(), new Closure()
{
public void execute(Object object)
{
if (object instanceof ServiceOperation)
{
final ServiceOperation operation = (ServiceOperation)object;
if (operation.isIncomingMessageOperation())
{
destinations.add(operation.getIncomingDestination());
}
else if (operation.isOutgoingMessageOperation())
{
destinations.add(operation.getOutgoingDestination());
}
}
}
});
return destinations;