try { ISuportePersistente sp = PersistenceSupportFactory.getDefaultPersistenceSupport(); List workLocations = sp.getIPersistentWorkLocation().readAll(); infoWorkLocations = Cloner.copyListIWorkLocation2ListInfoWorkLocation(workLocations); } catch (ExcepcaoPersistencia ex) { FenixServiceException newEx = new FenixServiceException("Persistence layer error"); newEx.fillInStackTrace(); throw newEx;
ISuportePersistente sp = PersistenceSupportFactory.getDefaultPersistenceSupport(); List<IWorkLocation> workLocations = sp.getIPersistentWorkLocation().readAll();  for (IWorkLocation workLocation : workLocations) { infoWorkLocations.add(InfoWorkLocation.newInfoFromDomain(workLocation));
    public Object run() throws FenixServiceException {        List infoWorkLocations = new ArrayList();        try {            ISuportePersistente sp = PersistenceSupportFactory.getDefaultPersistenceSupport();            List workLocations = sp.getIPersistentWorkLocation().readAll();            infoWorkLocations = Cloner.copyListIWorkLocation2ListInfoWorkLocation(workLocations);        } catch (ExcepcaoPersistencia ex) {            FenixServiceException newEx = new FenixServiceException("Persistence layer error");            newEx.fillInStackTrace();            throw newEx;        }        return infoWorkLocations;    }