public void setCollectionPointer(OBonsaiCollectionPointer collectionPointer) {
this.collectionPointer = collectionPointer;
}
@Override
public void setOwner(ORecord<?> owner) {
<BUG>if (owner != null && this.owner != null && !this.owner.equals(owner)) {
throw new IllegalStateException("This data structure is owned by document " + owner
+ " if you want to use it in other document create new rid bag instance and copy content of current one.");</BUG>
}
this.owner = owner;

public void setCollectionPointer(OBonsaiCollectionPointer collectionPointer) {
this.collectionPointer = collectionPointer;
}
@Override
public void setOwner(ORecord<?> owner) {
if (owner != null && this.owner != null && !this.owner.equals(owner)) {
throw new IllegalStateException("This data structure is owned by document " + owner + " if you want to use it in other document create new rid bag instance and copy content of current one.");
}
this.owner = owner;
