public static AccountabilityType readAccountabilityTypeByType(AccountabilityTypeEnum typeEnum) throws ExcepcaoPersistencia{ final ISuportePersistente suportePersistente = PersistenceSupportFactory.getDefaultPersistenceSupport(); final IPersistentObject persistentObject = suportePersistente.getIPersistentObject(); List<AccountabilityType> allAccountabilityTypes = (List<AccountabilityType>) persistentObject.readAll(AccountabilityType.class);
public static AccountabilityType readAccountabilityTypeByType(AccountabilityTypeEnum typeEnum) throws ExcepcaoPersistencia {  List<AccountabilityType> allAccountabilityTypes = RootDomainObject.getInstance() .getAccountabilityTypes();
    public static AccountabilityType readAccountabilityTypeByType(AccountabilityTypeEnum typeEnum) throws ExcepcaoPersistencia{        final ISuportePersistente suportePersistente = PersistenceSupportFactory.getDefaultPersistenceSupport();        final IPersistentObject persistentObject = suportePersistente.getIPersistentObject();                List<AccountabilityType> allAccountabilityTypes = (List<AccountabilityType>) persistentObject.readAll(AccountabilityType.class);        for (AccountabilityType accountabilityType : allAccountabilityTypes) {            if(accountabilityType.getType().equals(typeEnum)){                return accountabilityType;            }        }        return null;    }