code: @Override
      public void write(ByteBuffer buffer) {
  //        if (obj instanceof Persistable)
  //            ((Persistable) obj).write(buffer);
  //        else {
          if (obj != null)
              buffer.put(getSerialized());
          tmpBuffer = null;
  //        }
      }
docs: This method is not thread safe!