Stores an object in the object store.
The provided ByteBuffer must not be modified during the execution of this method.