public BigDecimal getDiscountPercentage(final Event event) {
PaymentPlan paymentPlan = getPaymentPlan(event);
if (paymentPlan == null) {
throw new DomainException("error.event.not.associated.paymentPlan", event.getClass().getName());
}
return ((GratuityEventWithPaymentPlan) event).calculateDiscountPercentage(paymentPlan.calculateBaseAmount(event));
}
@Override
public List<EntryDTO> calculateEntries(Event event, DateTime when) {
final List<EntryDTO> result = new ArrayList<EntryDTO>();