contributor = sp.getIPersistentContributor().readByContributorNumber(
IContributor contributor = sp.getIPersistentContributor().readByContributorNumber(
    private IGuide createNewGuideVersion(InfoGuide infoGuide) throws FenixServiceException,            ExcepcaoPersistencia {        IGuide guide = DomainFactory.makeGuide();        ISuportePersistente sp = null;        IContributor contributor = null;        IPerson person = null;        IExecutionDegree executionDegree = null;        // Read the needed information from the DataBase        person = sp.getIPessoaPersistente()                .lerPessoaPorUsername(infoGuide.getInfoPerson().getUsername());        contributor = sp.getIPersistentContributor().readByContributorNumber(                infoGuide.getInfoContributor().getContributorNumber());        IExecutionYear executionYear = sp.getIPersistentExecutionYear().readExecutionYearByName(                infoGuide.getInfoExecutionDegree().getInfoExecutionYear().getYear());        executionDegree = sp.getIPersistentExecutionDegree().readByDegreeCurricularPlanAndExecutionYear(                infoGuide.getInfoExecutionDegree().getInfoDegreeCurricularPlan().getName(),                infoGuide.getInfoExecutionDegree().getInfoDegreeCurricularPlan().getInfoDegree()                        .getSigla(), executionYear.getYear());        // Set the fields        guide.setContributor(contributor);        guide.setPerson(person);        guide.setExecutionDegree(executionDegree);        guide.setCreationDate(Calendar.getInstance().getTime());        guide.setGuideRequester(infoGuide.getGuideRequester());        guide.setNumber(infoGuide.getNumber());        guide.setYear(infoGuide.getYear());        guide.setVersion(new Integer(infoGuide.getVersion().intValue() + 1));        guide.setPaymentDate(infoGuide.getPaymentDate());        guide.setPaymentType(infoGuide.getPaymentType());        guide.setRemarks(null);        // The total will be calculated afterwards        guide.setTotal(new Double(0));        return guide;    }