private static void putHeader(@NotNull ByteBuffer keyBuffer,
                                boolean valueEmpty) {
    byte header = (byte)(valueEmpty ? 0 : 1);
    keyBuffer.put(0, header);
  }
private static void putHeader(@NotNull ByteBuffer keyBuffer,
                                boolean valueEmpty)