listaUs.add(us);
ids.remove(0);
}
pm.close();
} catch (PersistenceMechanismException e) {
throw new RepositoryException(ExceptionMessages.EXC_FALHA_PROCURA);
} finally {
try {
mp.releaseCommunicationChannel();
} catch (PersistenceMechanismException e) {
throw new RepositoryException(e.getMessage());
}
}
// O retorno desse m�todo � uma estrutura que permite a
// itera��o nos elementos
return new ConcreteIterator(listaUs);