groupProposal.setOrderOfPreference(new Integer(group.getGroupProposals().size() + 1));
groupProposal.setOrderOfPreference(Integer.valueOf(group.getGroupProposals().size()));
    public boolean run(Integer groupOID, Integer proposalOID) throws ExcepcaoPersistencia,            FenixServiceException {        Group group = rootDomainObject.readGroupByOID(groupOID);        Proposal proposal = rootDomainObject.readProposalByOID(proposalOID);        if (group != null && group.getGroupProposals() != null        /* && !CollectionUtils.exists(group.getStudents(), ) */) {            Scheduleing scheduleing = group.getExecutionDegree().getScheduling();            if (scheduleing == null                    || scheduleing.getMaximumNumberOfProposalCandidaciesPerGroup() == null) {                throw new MaximumNumberOfProposalCandidaciesPerGroupUndefinedException();            } else if (scheduleing.getMaximumNumberOfProposalCandidaciesPerGroup().intValue() <= group                    .getGroupProposals().size()) {                throw new MaximumNumberOfProposalCandidaciesPerGroupReachedException(scheduleing                        .getMaximumNumberOfProposalCandidaciesPerGroup().toString());            }            if (scheduleing == null || scheduleing.getMinimumNumberOfStudents() == null) {                throw new MinimumNumberOfStudentsUndefinedException();            } else if (scheduleing.getMinimumNumberOfStudents().intValue() > group.getGroupStudents()                    .size()) {                throw new MinimumNumberOfStudentsNotReachedException(scheduleing                        .getMinimumNumberOfStudents().toString());            }            GroupProposal groupProposal = DomainFactory.makeGroupProposal();            groupProposal.setFinalDegreeWorkProposal(proposal);            groupProposal.setFinalDegreeDegreeWorkGroup(group);            groupProposal.setOrderOfPreference(new Integer(group.getGroupProposals().size() + 1));            return true;        }        return false;    }