throw new JBossJMSException("Cannot create security metadata", e);
throw new MessagingJMSException("Cannot create security metadata", e);
   public void setSecurityConfig(boolean isQueue, String destName, Element conf) throws JMSException   {      if (trace) { log.trace("adding security configuration for " + (isQueue ? "queue " : "topic ") + destName); }      SecurityMetadata m = null;      try      {         m = new SecurityMetadata(conf);      }      catch(Exception e)      {         throw new JBossJMSException("Cannot create security metadata", e);      }      if (isQueue)      {         queueSecurityConf.put(destName, m);      }      else      {         topicSecurityConf.put(destName, m);      }   }