code: public Object getObjectByIdentity(Identity id)
              throws PersistenceBrokerException
      {
          checkOpen();
          ObjectEnvelope envelope = objectEnvelopeTable.getByIdentity(id);
          if (envelope != null)
          {
              return (envelope.needsDelete() ? null : envelope.getObject());
          }
          else
          {
              return getBroker().getObjectByIdentity(id);
          }
      }
docs: Get object by identity. First lookup among objects registered in the
  transaction, then in persistent storage.
  @param id The identity
  @return The object
  @throws PersistenceBrokerException