List executionPeriods = persistentExecutionPeriod.readAllExecutionPeriod();
Collection executionPeriods = persistentExecutionPeriod.readAll(ExecutionPeriod.class);
    public InfoExecutionPeriod run(Integer oid) throws ExcepcaoPersistencia {        ISuportePersistente sp = PersistenceSupportFactory.getDefaultPersistenceSupport();        IPersistentObject persistentObject = sp.getIPersistentObject();        IPersistentExecutionPeriod persistentExecutionPeriod = sp.getIPersistentExecutionPeriod();        IExecutionPeriod executionPeriod = (IExecutionPeriod) persistentObject.readByOID(ExecutionPeriod.class, oid);        List executionPeriods = persistentExecutionPeriod.readAllExecutionPeriod();        for (Iterator iterator = executionPeriods.iterator(); iterator.hasNext(); ) {            IExecutionPeriod otherExecutionPeriod = (IExecutionPeriod) iterator.next();            if (otherExecutionPeriod.getPreviousExecutionPeriod() != null                    && executionPeriod.getIdInternal().equals(otherExecutionPeriod.getPreviousExecutionPeriod().getIdInternal())) {                return (InfoExecutionPeriod) Cloner.get(otherExecutionPeriod);            }        }        return null;    }