private static ModelNode createSSLConfModelNode(ConnectorAS7Bean connAS7) {
    ModelNode sslConf = new ModelNode();
    sslConf.get(ClientConstants.OP).set(ClientConstants.ADD);
    sslConf.get(ClientConstants.OP_ADDR).add("subsystem", "web");
    sslConf.get(ClientConstants.OP_ADDR).add("connector", connAS7.getConnectorName());
    sslConf.get(ClientConstants.OP_ADDR).add("ssl", "configuration");

    CliApiCommandBuilder sslBuilder = new CliApiCommandBuilder(sslConf);

    sslBuilder.addProperty("name", connAS7.getSslName());
    sslBuilder.addProperty("verify-client", connAS7.getVerifyClient());
    sslBuilder.addProperty("verify-depth", connAS7.getVerifyDepth());
    sslBuilder.addProperty("certificate-key-file", connAS7.getCertifKeyFile());
    sslBuilder.addProperty("password", connAS7.getPassword());
    sslBuilder.addProperty("protocol", connAS7.getProtocol());
    sslBuilder.addProperty("ciphers", connAS7.getCiphers());
    sslBuilder.addProperty("key-alias", connAS7.getKeyAlias());
    sslBuilder.addProperty("ca-certificate-file", connAS7.getCaCertifFile());
    sslBuilder.addProperty("session-cache-size", connAS7.getSessionCacheSize());
    sslBuilder.addProperty("session-timeout", connAS7.getSessionTimeout());
    return sslBuilder.getCommand();
  }
  /**
   * Creates a CLI script for adding a SSL configuration of the Connector
   *
   * @param connAS7 Connector containing SSL configuration
   * @return created string containing the CLI script for adding the SSL configuration
   * @deprecated Generate this from the ModelNode.
   */
  private static String createSSLConfScript(ConnectorAS7Bean connAS7) {
    CliAddScriptBuilder builder = new CliAddScriptBuilder();
    StringBuilder resultScript =
        new StringBuilder("/subsystem=web/connector=" + connAS7.getConnectorName());

    resultScript.append("/ssl=configuration:add(");

    builder.addProperty("name", connAS7.getSslName());
    builder.addProperty("verify-client", connAS7.getVerifyClient());
    builder.addProperty("verify-depth", connAS7.getVerifyDepth());
    builder.addProperty("certificate-key-file", connAS7.getCertifKeyFile());
    builder.addProperty("password", connAS7.getPassword());
    builder.addProperty("protocol", connAS7.getProtocol());
    builder.addProperty("ciphers", connAS7.getCiphers());
    builder.addProperty("key-alias", connAS7.getKeyAlias());
    builder.addProperty("ca-certificate-file", connAS7.getCaCertifFile());
    builder.addProperty("session-cache-size", connAS7.getSessionCacheSize());
    builder.addProperty("session-timeout", connAS7.getSessionTimeout());

    resultScript.append(builder.asString()).append(")");

    return resultScript.toString();
  }