/**
   * Creates and instance using the given URL
   *
   * @param targetEPR the target EPR
   */
  JMSOutTransportInfo(String targetEPR) {

    this.targetEPR = targetEPR;
    properties = BaseUtils.getEPRProperties(targetEPR);
    String destinationType = properties.get(JMSConstants.PARAM_DEST_TYPE);
    if (destinationType != null) {
      setDestinationType(destinationType);
    }

    String replyDestinationType = properties.get(JMSConstants.PARAM_REPLY_DEST_TYPE);
    if (replyDestinationType != null) {
      setReplyDestinationType(replyDestinationType);
    }

    replyDestinationName = properties.get(JMSConstants.PARAM_REPLY_DESTINATION);
    contentTypeProperty = properties.get(JMSConstants.CONTENT_TYPE_PROPERTY_PARAM);
    cacheLevel = getCacheLevel(properties.get(JMSConstants.PARAM_CACHE_LEVEL));

    jmsSpecVersion =
        properties.get(JMSConstants.JMS_SPEC_VERSION) != null
            ? properties.get(JMSConstants.JMS_SPEC_VERSION)
            : "1.0.2b";
  }