try { ISuportePersistente sp = PersistenceSupportFactory.getDefaultPersistenceSupport(); masterDegreeProofVersion = (IMasterDegreeProofVersion) sp .getIPersistentMasterDegreeProofVersion().readByOID(MasterDegreeProofVersion.class, masterDegreeProofVersionID);
if (masterDegreeProofVersion == null) throw new NonExistingServiceException( "error.exception.masterDegree.nonExistingMasterDegreeProofVersion");
    public Object run(Integer masterDegreeProofVersionID) throws FenixServiceException {        InfoMasterDegreeProofVersion infoMasterDegreeProofVersion = null;        IMasterDegreeProofVersion masterDegreeProofVersion = null;        try {            ISuportePersistente sp = PersistenceSupportFactory.getDefaultPersistenceSupport();            masterDegreeProofVersion = (IMasterDegreeProofVersion) sp                    .getIPersistentMasterDegreeProofVersion().readByOID(MasterDegreeProofVersion.class,                            masterDegreeProofVersionID);            if (masterDegreeProofVersion == null)                throw new NonExistingServiceException(                        "error.exception.masterDegree.nonExistingMasterDegreeProofVersion");            infoMasterDegreeProofVersion = Cloner                    .copyIMasterDegreeProofVersion2InfoMasterDegreeProofVersion(masterDegreeProofVersion);        } catch (ExcepcaoPersistencia ex) {            FenixServiceException newEx = new FenixServiceException("Persistence layer error");            newEx.fillInStackTrace();            throw newEx;        }        return infoMasterDegreeProofVersion;    }