if (entryDTOs.size() != 1) {
throw new DomainException("error.DegreeCandidacyForGraduatedPersonPR.invalid.number.of.entryDTOs");
}
final EntryDTO entryDTO = entryDTOs.iterator().next();
checkIfCanAddAmount(entryDTO.getAmountToPay(), event, transactionDetail.getWhenRegistered());
return Collections.singleton(makeAccountingTransaction(user, event, fromAccount, toAccount, entryDTO.getEntryType(),
entryDTO.getAmountToPay(), transactionDetail));
}