public IDomainObject readByOId(IDomainObject obj) throws ExcepcaoPersistencia { PersistenceBroker broker = PersistenceBrokerFactory.defaultPersistenceBroker();  Identity identity = new Identity(obj,broker); IDomainObject result = (IDomainObject) broker.getObjectByIdentity(identity);  broker.close();  return  result;
public IDomainObject readByOId(IDomainObject obj) throws ExcepcaoPersistencia { PersistenceBroker broker = ((HasBroker) odmg.currentTransaction()).getBroker();  Identity identity = new Identity(obj, broker); IDomainObject result = (IDomainObject) broker.getObjectByIdentity(identity); tx = odmg.currentTransaction(); tx.lock(result, Transaction.READ);  return result;
	public IDomainObject readByOId(IDomainObject obj) throws ExcepcaoPersistencia {		PersistenceBroker broker = PersistenceBrokerFactory.defaultPersistenceBroker();						Identity identity = new Identity(obj,broker);		IDomainObject result = (IDomainObject) broker.getObjectByIdentity(identity);				broker.close();				return  result;	}