code: @Override
      protected void channelRead0(ChannelHandlerContext ctx, FullBinaryMemcacheResponse msg) throws Exception {
          switch (msg.getStatus()) {
              case SUCCESS:
                  originalPromise.setSuccess();
                  ctx.pipeline().remove(this);
                  ctx.fireChannelActive();
                  break;
              case ACCESS_ERROR:
                  originalPromise.setFailure(new AuthenticationException("Authentication failure on Select Bucket command"));
                  break;
              case NOTFOUND_ERROR:
                  originalPromise.setFailure(new AuthenticationException("Bucket not found on Select Bucket command"));
                  break;
              default:
                  originalPromise.setFailure(new AuthenticationException("Unhandled select bucket status: "
                          + msg.getStatus()));
          }
      }
docs: Handles incoming Select bucket responses.
  
  @param ctx the handler context.
  @param msg the incoming message to investigate.
  @throws Exception if something goes wrong during communicating to the server.