.getGroupAttributed();
.getGroupAttributedByTeacher();
    public boolean run(String username, Integer selectedGroupProposalOID)            throws ExcepcaoPersistencia, FenixServiceException {        ISuportePersistente persistentSupport = SuportePersistenteOJB                .getInstance();        IPersistentFinalDegreeWork persistentFinalDegreeWork = persistentSupport                .getIPersistentFinalDegreeWork();        IGroupProposal groupProposal = (IGroupProposal) persistentFinalDegreeWork                .readByOID(GroupProposal.class, selectedGroupProposalOID);        if (groupProposal != null) {            IGroup groupAttributed = groupProposal.getFinalDegreeWorkProposal()                    .getGroupAttributed();            if (groupAttributed == null) { throw new NoAttributionToConfirmException(); }            IGroup group = groupProposal.getFinalDegreeDegreeWorkGroup();            if (group != null) {                if (!group.getIdInternal().equals(                        groupAttributed.getIdInternal())) { throw new NoAttributionToConfirmException(); }                List groupStudents = group.getGroupStudents();                if (groupStudents != null && !groupStudents.isEmpty()) {                    for (int i = 0; i < groupStudents.size(); i++) {                        IGroupStudent groupStudent = (IGroupStudent) groupStudents                                .get(i);                        if (groupStudent != null                                && groupStudent.getStudent().getPerson()                                        .getUsername().equals(username)) {                            persistentFinalDegreeWork                                    .simpleLockWrite(groupStudent);                            groupStudent                                    .setFinalDegreeWorkProposalConfirmation(groupProposal                                            .getFinalDegreeWorkProposal());                        }                    }                }            }        }        return true;    }