src/main/java/org/jboss/loom/migrators/server/ServerMigrator.java
private static String createConnectorScript(ConnectorAS7Bean connAS7) throws CliScriptException {
        String errMsg = " in connector must be set.";
        Utils.throwIfBlank(connAS7.getScheme(), errMsg, "Scheme");
        Utils.throwIfBlank(connAS7.getSocketBinding(), errMsg, "Socket-binding");
        Utils.throwIfBlank(connAS7.getConnectorName(), errMsg, "Connector name");
        Utils.throwIfBlank(connAS7.getProtocol(), errMsg, "Protocol");

        CliAddScriptBuilder builder = new CliAddScriptBuilder();
        StringBuilder resultScript = new StringBuilder("/subsystem=web/connector=");

        resultScript.append(connAS7.getConnectorName()).append(":add(");

        builder.addProperty("socket-binding", connAS7.getSocketBinding());
        builder.addProperty("enable-lookups", connAS7.getEnableLookups());
        builder.addProperty("max-post-size", connAS7.getMaxPostSize());
        builder.addProperty("max-save-post-size", connAS7.getMaxSavePostSize());
        builder.addProperty("max-connections", connAS7.getMaxConnections());
        builder.addProperty("protocol", connAS7.getProtocol());
        builder.addProperty("proxy-name", connAS7.getProxyName());
        builder.addProperty("proxy-port", connAS7.getProxyPort());
        builder.addProperty("redirect-port", connAS7.getRedirectPort());
        builder.addProperty("scheme", connAS7.getScheme());
        builder.addProperty("secure", connAS7.getSecure());
        builder.addProperty("enabled", connAS7.getEnabled());

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

        return resultScript.toString();
    }
/**
     * Creates a CLI script for adding a Connector
     *
     * @param connAS7 object of migrated connector
     * @return string containing created CLI script
     * @throws CliScriptException if required attributes are missing
     * 
     * @deprecated  Generate this from the ModelNode.
     */
Creates a CLI script for adding a Connector
@param connAS7 object of migrated connector
@return string containing created CLI script
@throws CliScriptException if required attributes are missing

@deprecated  Generate this from the ModelNode.
Creates a CLI script for adding a Connector @param connAS7 object of migrated connector @return string containing created CLI script @throws CliScriptException if required attributes are missing @deprecated Generate this from the ModelNode .
private static String createConnectorScript(ConnectorAS7Bean connAS7) throws CliScriptException {
        String errMsg = " in connector must be set.";
        Utils.throwIfBlank(connAS7.getScheme(), errMsg, "Scheme");
        Utils.throwIfBlank(connAS7.getSocketBinding(), errMsg, "Socket-binding");
        Utils.throwIfBlank(connAS7.getConnectorName(), errMsg, "Connector name");
        Utils.throwIfBlank(connAS7.getProtocol(), errMsg, "Protocol");
        CliAddScriptBuilder builder = new CliAddScriptBuilder();
        StringBuilder resultScript = new StringBuilder("/subsystem=web/connector=");
        resultScript.append(connAS7.getConnectorName()).append(":add(");
        builder.addProperty("socket-binding", connAS7.getSocketBinding());
        builder.addProperty("enable-lookups", connAS7.getEnableLookups());
        builder.addProperty("max-post-size", connAS7.getMaxPostSize());
        builder.addProperty("max-save-post-size", connAS7.getMaxSavePostSize());
        builder.addProperty("max-connections", connAS7.getMaxConnections());
        builder.addProperty("protocol", connAS7.getProtocol());
        builder.addProperty("proxy-name", connAS7.getProxyName());
        builder.addProperty("proxy-port", connAS7.getProxyPort());
        builder.addProperty("redirect-port", connAS7.getRedirectPort());
        builder.addProperty("scheme", connAS7.getScheme());
        builder.addProperty("secure", connAS7.getSecure());
        builder.addProperty("enabled", connAS7.getEnabled());
        resultScript.append(builder.formatAndClearProps()).append(")");
        return resultScript.toString();
    }
private static String createConnectorScript ( ConnectorAS7Bean connAS7 ) throws CliScriptException { String errMsg = " in connector must be set." ; Utils . throwIfBlank ( connAS7 . getScheme ( ) , errMsg , "Scheme" ) ; Utils . throwIfBlank ( connAS7 . getSocketBinding ( ) , errMsg , "Socket-binding" ) ; Utils . throwIfBlank ( connAS7 . getConnectorName ( ) , errMsg , "Connector name" ) ; Utils . throwIfBlank ( connAS7 . getProtocol ( ) , errMsg , "Protocol" ) ; CliAddScriptBuilder builder = new CliAddScriptBuilder ( ) ; StringBuilder resultScript = new StringBuilder ( "/subsystem=web/connector=" ) ; resultScript . append ( connAS7 . getConnectorName ( ) ) . append ( ":add(" ) ; builder . addProperty ( "socket-binding" , connAS7 . getSocketBinding ( ) ) ; builder . addProperty ( "enable-lookups" , connAS7 . getEnableLookups ( ) ) ; builder . addProperty ( "max-post-size" , connAS7 . getMaxPostSize ( ) ) ; builder . addProperty ( "max-save-post-size" , connAS7 . getMaxSavePostSize ( ) ) ; builder . addProperty ( "max-connections" , connAS7 . getMaxConnections ( ) ) ; builder . addProperty ( "protocol" , connAS7 . getProtocol ( ) ) ; builder . addProperty ( "proxy-name" , connAS7 . getProxyName ( ) ) ; builder . addProperty ( "proxy-port" , connAS7 . getProxyPort ( ) ) ; builder . addProperty ( "redirect-port" , connAS7 . getRedirectPort ( ) ) ; builder . addProperty ( "scheme" , connAS7 . getScheme ( ) ) ; builder . addProperty ( "secure" , connAS7 . getSecure ( ) ) ; builder . addProperty ( "enabled" , connAS7 . getEnabled ( ) ) ; resultScript . append ( builder . formatAndClearProps ( ) ) . append ( ")" ) ; return resultScript . toString ( ) ; }
Creates a CLI script for adding a Connector
 @param connAS7 object of migrated connector
 @return string containing created CLI script
 @throws CliScriptException if required attributes are missing
Creates a CLI script for adding a Connector @param connAS7 object of migrated connector @return string containing created CLI script @throws CliScriptException if required attributes are missing