class BlockingBootstrapper implements Bootstrapper {

    @Override
    public final int start( File homeDir, Optional<File> configFile, Map<String, String> configOverrides )
    {
        int status = wrapped.start( homeDir, configFile, configOverrides );
        if ( status != ServerBootstrapper.OK )
        {
            return status;
        }

        try
        {
            latch.await();
        }
        catch ( InterruptedException e )
        {
            Thread.currentThread().interrupt();
        }

        return wrapped.stop();
    }

    public  BlockingBootstrapper( Bootstrapper wrapped );

}