private boolean isQueue(DestinationType type)
    {
        boolean isQueue = false;
        if (type == DestinationType.QUEUE ||
            type == DestinationType.PORT)
            //  type == DestinationType.SERVICE)
            isQueue = true;

        return isQueue;
    }
private boolean isQueue ( DestinationType type ) { boolean isQueue = false ; if ( type == DestinationType . QUEUE || type == DestinationType . PORT ) isQueue = true ; return isQueue ; }
Checks if this destination is a queue/service or port

@param type