src/main/java/org/jboss/loom/migrators/server/ServerMigrator.java
private static VirtualServerBean migrateEngine(EngineBean engine) {
        VirtualServerBean virtualServer = new VirtualServerBean();
        virtualServer.setVirtualServerName(engine.getEngineName());
        virtualServer.setEnableWelcomeRoot("true");
        virtualServer.setAliasName(engine.getHostNames());

        if (engine.getAliases() != null) {
            virtualServer.getAliasName().addAll(engine.getAliases());
        }

        return virtualServer;
    }
/**
     * Migrates a Engine from AS5 to AS7
     *
     * @param engine object representing Engine
     * @return created virtual-server
     */
Migrates a Engine from AS5 to AS7
@param engine object representing Engine
@return created virtual-server
Migrates a Engine from AS5 to AS7 @param engine object representing Engine @return created virtual - server
private static VirtualServerBean migrateEngine(EngineBean engine) {
        VirtualServerBean virtualServer = new VirtualServerBean();
        virtualServer.setVirtualServerName(engine.getEngineName());
        virtualServer.setEnableWelcomeRoot("true");
        virtualServer.setAliasName(engine.getHostNames());
        if (engine.getAliases() != null) {
            virtualServer.getAliasName().addAll(engine.getAliases());
        }
        return virtualServer;
    }
private static VirtualServerBean migrateEngine ( EngineBean engine ) { VirtualServerBean virtualServer = new VirtualServerBean ( ) ; virtualServer . setVirtualServerName ( engine . getEngineName ( ) ) ; virtualServer . setEnableWelcomeRoot ( "true" ) ; virtualServer . setAliasName ( engine . getHostNames ( ) ) ; if ( engine . getAliases ( ) != null ) { virtualServer . getAliasName ( ) . addAll ( engine . getAliases ( ) ) ; } return virtualServer ; }
Migrates a Engine from AS5 to AS7
 @param engine object representing Engine
 @return created virtual-server
Migrates a Engine from AS5 to AS7 @param engine object representing Engine @return created virtual - server