{
QueueConnectionFactoryAdmin cfAdmin = null;
if (connectionFactory instanceof JNDIQueueConnectionFactory)
{
JNDIQueueConnectionFactory jndiCF = (JNDIQueueConnectionFactory) connectionFactory;
return createSession(hermes, jndiCF._getConnectionFactory());
}
if (connectionFactory instanceof QueueConnectionFactoryAdmin)
{
try
{