code: private static ByteBuf contentFromWriteRequest(BinaryRequest request) {
          ByteBuf content = null;
          if (request instanceof BinaryStoreRequest) {
              content = ((BinaryStoreRequest) request).content();
          } else if (request instanceof AppendRequest) {
              content = ((AppendRequest) request).content();
          } else if (request instanceof PrependRequest) {
              content = ((PrependRequest) request).content();
          } else if (request instanceof BinarySubdocRequest) {
              content = ((BinarySubdocRequest) request).content();
          } else if (request instanceof BinarySubdocMultiLookupRequest) {
              content = ((BinarySubdocMultiLookupRequest) request).content();
          } else if (request instanceof BinarySubdocMultiMutationRequest) {
              content = ((BinarySubdocMultiMutationRequest) request).content();
          }
          return content;
      }
docs: Helper method to extract the content from requests.