/**
   * Read port from carbon.xml
   *
   * @return
   */
  private String readSSLPortFromCarbonConfig() {
    ServerConfigurationService carbonConfig =
        QpidServiceDataHolder.getInstance().getCarbonConfiguration();
    String port = carbonConfig.getFirstProperty(CARBON_CONFIG_QPID_SSL_PORT_NODE);

    return ((port != null) ? port.trim() : "");
  }
  private int readPortOffset() {
    ServerConfigurationService carbonConfig =
        QpidServiceDataHolder.getInstance().getCarbonConfiguration();
    String portOffset =
        System.getProperty(
            "portOffset", carbonConfig.getFirstProperty(CARBON_CONFIG_PORT_OFFSET_NODE));

    try {
      return ((portOffset != null)
          ? Integer.parseInt(portOffset.trim())
          : CARBON_DEFAULT_PORT_OFFSET);
    } catch (NumberFormatException e) {
      return CARBON_DEFAULT_PORT_OFFSET;
    }
  }