private String inferDestinationName ( String address ) { if ( address . startsWith ( JMS_QUEUE_PREFIX ) ) { return address . substring ( JMS_QUEUE_PREFIX . length ( ) ) ; } else if ( address . startsWith ( JMS_TOPIC_PREFIX ) ) { return address . substring ( JMS_TOPIC_PREFIX . length ( ) ) ; } else { return address ; } }
Infer the name of the JMS destination based on the queue s address .