log.debug( "calling init(String[]) from main(String[])" ); instance.init( args );
log.debug( "calling callInit(String[]) from main(String[])" ); instance.callInit();
    public static void main( String[] args )    {        log.debug( "main(String[]) called" );                if ( log.isDebugEnabled() )        {            log.debug( "main() recieved args:" );            for ( int ii = 0; ii < args.length; ii++ )            {                log.debug( "args[" + ii + "] = " + args[ii] );            }        }        MainBootstrapper instance = new MainBootstrapper();        if ( args.length > 1 )        {            log.debug( "main(String[]) initializing Bootstrapper ... )" );            instance.setInstallationLayout( args[0] );            instance.setParentLoader( Bootstrapper.class.getClassLoader() );            log.debug( "Bootstrapper initialized" );        }        else        {            String msg = "Server exiting without required installation.home or command.name.";            System.err.println( msg );            log.error( msg );            printHelp();            System.exit( 1 );        }        String command = args[args.length - 1];        try        {            if ( command.equalsIgnoreCase( "start" ) )            {                log.debug( "calling init(String[]) from main(String[])" );                instance.init( args );                log.debug( "calling start() from main(String[])" );                instance.start();            }            else if ( command.equalsIgnoreCase( "stop" ) )            {                log.debug( "calling stop() from main(String[])" );                instance.stop();                instance.destroy();            }            else            {                log.error( "Unrecognized command " + command );                printHelp();                System.exit( 3 );            }        }        catch ( Throwable t )        {            log.error( "Encountered error while processing command: " + command );            t.printStackTrace();            System.exit( 4 );        }    }