/** INTERNAL: Used to verify whether the specified object is deleted or not. */
  public boolean verifyDelete(Object object, AbstractSession session) throws DatabaseException {
    if (this.isPrivateOwned()) {
      Object objects = this.getRealCollectionAttributeValueFromObject(object, session);

      ContainerPolicy containerPolicy = getContainerPolicy();
      for (Object iter = containerPolicy.iteratorFor(objects); containerPolicy.hasNext(iter); ) {
        if (!session.verifyDelete(containerPolicy.next(iter, session))) {
          return false;
        }
      }
    }
    return true;
  }
 /** Verifies that the object was deleted from the database correctly. */
 public void verifyDelete(Object writtenObject, String persistenceUnit) {
   AbstractSession dbs = getDatabaseSession(persistenceUnit);
   boolean ok;
   if (dbs.isServerSession()) {
     ok = ((ServerSession) dbs).acquireClientSession().verifyDelete(writtenObject);
   } else if (dbs.isSessionBroker()) {
     ok = ((SessionBroker) dbs).acquireClientSessionBroker().verifyDelete(writtenObject);
   } else {
     ok = dbs.verifyDelete(writtenObject);
   }
   if (!ok) {
     fail("Object not deleted from the database correctly: " + writtenObject);
   }
 }