InfoShift result = null; try { ISuportePersistente sp = PersistenceSupportFactory.getDefaultPersistenceSupport(); ITurnoPersistente shiftDAO = sp.getITurnoPersistente(); IShift shift = (IShift) shiftDAO.readByOID(Shift.class, oid);
if (shift != null) { final InfoShift infoShift = InfoShift.newInfoFromDomain(shift);
    public InfoShift run(Integer oid) throws FenixServiceException {        InfoShift result = null;        try {            ISuportePersistente sp = PersistenceSupportFactory.getDefaultPersistenceSupport();            ITurnoPersistente shiftDAO = sp.getITurnoPersistente();            IShift shift = (IShift) shiftDAO.readByOID(Shift.class, oid);            if (shift != null) {                result = (InfoShift) Cloner.get(shift);            }        } catch (ExcepcaoPersistencia ex) {            throw new FenixServiceException(ex);        }        return result;    }