}
@Override
protected Money subtractFromExemptions(Event event, DateTime when, boolean applyDiscount, Money amountToPay) {
if (event instanceof InsuranceEvent) {
InsuranceEvent insuranceEvent = (InsuranceEvent) event;
if (insuranceEvent.hasInsuranceExemption()) {
return Money.ZERO;
}
} else if (event instanceof AdministrativeOfficeFeeAndInsuranceEvent) {
final AdministrativeOfficeFeeAndInsuranceEvent administrativeOfficeFeeAndInsuranceEvent =
(AdministrativeOfficeFeeAndInsuranceEvent) event;