The destination can be the name of a queue, even if the message is received from a Pub/Sub session, and the destination can be the name of a topic even if the message is received from a PTP session.
An application must call getReplyToDestinationType function if both a queue destination and a topic destination might be stored in the received message.