public Channel start(final ChannelInitializer<SocketChannel> channelInitializer) throws InterruptedException {
        bossGroup = new NioEventLoopGroup(1);
        workerGroup = new NioEventLoopGroup();
        final ServerBootstrap b = new ServerBootstrap();
        b.group(bossGroup, workerGroup)
                .channel(NioServerSocketChannel.class)
                .handler(new LoggingHandler(LogLevel.INFO))
                .childHandler(channelInitializer);
        return b.bind(settings.PORT).sync().channel();
    }
A Simple Netty Server intended to be used as a base for gremlin test servers.
Server behavior is defined by the {@link ChannelInitializer} passed in the start method.
gremlin-tools/gremlin-socket-server/src/main/java/org/apache/tinkerpop/gremlin/socket/server/SimpleSocketServer.java