protected final SQSQueue getSQSQueue(NevadoDestination destination) throws JMSException { if (destination == null) { throw new JMSException("Destination is null"); } if (destination.isDeleted()) { throw new InvalidDestinationException("Destination " + destination + " has been deleted"); } NevadoQueue queue = (destination instanceof NevadoQueue) ? (NevadoQueue) destination : ((NevadoTopic) destination).getTopicEndpoint(); return getSQSQueueImpl(queue); }