code: private static synchronized Bootstrap getBootstrap(final boolean secure, final ChannelHandler handler) {
          final String methodName = "getBootstrap";
          logger.entry(methodName, secure);
  
          ++useCount;
          if (useCount == 1) {
              EventLoopGroup workerGroup = new NioEventLoopGroup();
              bootstrap = new Bootstrap();
              bootstrap.group(workerGroup);
              bootstrap.channel(NioSocketChannel.class);
              bootstrap.option(ChannelOption.SO_KEEPALIVE, true);
              bootstrap.option(ChannelOption.CONNECT_TIMEOUT_MILLIS, 30000);
              bootstrap.handler(handler);
          }
  
          final Bootstrap result;
          if (secure) {
            result = bootstrap.clone();
            result.handler(handler);
          } else {
            result = bootstrap;
          }
  
          logger.exit(methodName, result);
  
          return result;
      }
docs: Request a {@link Bootstrap} for obtaining a {@link Channel} and track
  that the workerGroup is being used.
  
  @param secure
  a {@code boolean} indicating whether or not a secure channel
  will be required
  @param handler a {@link ChannelHandler} to use for serving the requests.
  @return a netty {@link Bootstrap} object suitable for obtaining a
  {@link Channel} from