code: public static BinaryResponse create(BinaryCommand command, MemcachedServer server, ErrorCode errOk, ErrorCode errNotSupp) {
          if (!server.isCccpEnabled()) {
              return new BinaryResponse(command, errNotSupp);
          }
  
          String config = server.getBucket().getJSON();
          config = config.replaceAll(Pattern.quote(server.getHostname()),
                                     Matcher.quoteReplacement("$HOST"));
  
          byte[] jsBytes = config.getBytes();
          ByteBuffer buf = create(command, errOk, Datatype.RAW.value(), 0, 0, jsBytes.length, 0);
          buf.put(jsBytes);
          buf.rewind();
          return new BinaryResponse(buf);
      }
docs: Create a new response which contains a cluster configuration, if supported
  @param command The command received
  @param server The server on which the command was received
  @param errOk Error code to be supplied if the configuration can be sent
  @param errNotSupp Error code to be supplied if the configuration cannot
  be sent
  @return A response object