sess.createConsumer(dest);
MessageConsumer cons = sess.createConsumer(dest);
   private boolean canReadDestination(Connection conn, Destination dest) throws Exception   {      Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);      try      {         sess.createConsumer(dest);         return true;      }      catch (JMSSecurityException e)      {         log.trace("Can't read destination");         return false;      }   }