String exemptionId = request.getParameter("externalId");
PhdGratuityExternalScholarshipExemption exemption =
(PhdGratuityExternalScholarshipExemption) FenixFramework.getDomainObject(exemptionId == null ? (String) request
.getAttribute("externalId") : exemptionId);
ExternalScholarshipPhdGratuityContribuitionEvent event = exemption.getExternalScholarshipPhdGratuityContribuitionEvent();
AmountBean bean = getRenderedObject("bean");
List<EntryDTO> list = new ArrayList<EntryDTO>();
list.add(new EntryDTO(EntryType.EXTERNAL_SCOLARSHIP_PAYMENT, event, bean.getValue()));
event.process(Authenticate.getUser(), list, new AccountingTransactionDetailDTO(bean.getPaymentDate(), PaymentMode.CASH));
PhdGratuityEvent gratuityEvent = (PhdGratuityEvent) exemption.getEvent();
PhdIndividualProgramProcess process = gratuityEvent.getPhdIndividualProgramProcess();
request.setAttribute("processId", process.getExternalId());