src/main/java/org/jboss/loom/migrators/server/ServerMigrator.java
private static List<CliCommandAction> createConnectorCliAction(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");

        List<CliCommandAction> actions = new LinkedList();


        actions.add( new CliCommandAction( ServerMigrator.class, createConnectorScript(connAS7), createConnectorModelNode( connAS7 )));

        if (connAS7.getScheme().equals("https")) {
            actions.add( new CliCommandAction( ServerMigrator.class, 
                    createSSLConfScript( connAS7 ), 
                    createSSLConfModelNode( connAS7 )));
        }

        return actions;
    }
/**
     * Creates a list of CliCommandActions for adding a Connector
     *
     * @param connAS7 Connector
     * @return created list containing CliCommandActions for adding the Connector
     * @throws CliScriptException if required attributes for a creation of the CLI command of the Connector
     *                            are missing or are empty (socket-binding, connector-name, protocol)
     */
Creates a list of CliCommandActions for adding a Connector
@param connAS7 Connector
@return created list containing CliCommandActions for adding the Connector
@throws CliScriptException if required attributes for a creation of the CLI command of the Connector
are missing or are empty (socket-binding, connector-name, protocol)
Creates a list of CliCommandActions for adding a Connector @param connAS7 Connector @return created list containing CliCommandActions for adding the Connector @throws CliScriptException if required attributes for a creation of the CLI command of the Connector are missing or are empty ( socket - binding connector - name protocol )
private static List<CliCommandAction> createConnectorCliAction(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");
        List<CliCommandAction> actions = new LinkedList();
        actions.add( new CliCommandAction( ServerMigrator.class, createConnectorScript(connAS7), createConnectorModelNode( connAS7 )));
        if (connAS7.getScheme().equals("https")) {
            actions.add( new CliCommandAction( ServerMigrator.class, 
                    createSSLConfScript( connAS7 ), 
                    createSSLConfModelNode( connAS7 )));
        }
        return actions;
    }
private static List < CliCommandAction > createConnectorCliAction ( 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" ) ; List < CliCommandAction > actions = new LinkedList ( ) ; actions . add ( new CliCommandAction ( ServerMigrator . class , createConnectorScript ( connAS7 ) , createConnectorModelNode ( connAS7 ) ) ) ; if ( connAS7 . getScheme ( ) . equals ( "https" ) ) { actions . add ( new CliCommandAction ( ServerMigrator . class , createSSLConfScript ( connAS7 ) , createSSLConfModelNode ( connAS7 ) ) ) ; } return actions ; }
Creates a list of CliCommandActions for adding a Connector
 @param connAS7 Connector
 @return created list containing CliCommandActions for adding the Connector
 @throws CliScriptException if required attributes for a creation of the CLI command of the Connector
                            are missing or are empty (socket-binding, connector-name, protocol)
Creates a list of CliCommandActions for adding a Connector @param connAS7 Connector @return created list containing CliCommandActions for adding the Connector @throws CliScriptException if required attributes for a creation of the CLI command of the Connector are missing or are empty ( socket - binding connector - name protocol )