if (paymentPlanToAdd.isDefault() && serviceAgreementTemplate.hasDefaultPaymentPlan(paymentPlanToAdd .getExecutionYear())) { throw new DomainException( "error.domain.accounting.ServiceAgreementTemplate.already.has.a.default.payment.plan.for.execution.year"); }
		    public void beforeAdd(PaymentPlan paymentPlanToAdd,			    ServiceAgreementTemplate serviceAgreementTemplate) {			if (paymentPlanToAdd != null) {			    for (final PaymentPlan paymentPlan : serviceAgreementTemplate				    .getPaymentPlansSet()) {				if (paymentPlan.getClass().equals(paymentPlanToAdd.getClass())					&& paymentPlan.getExecutionYear() == paymentPlanToAdd						.getExecutionYear()) {				    throw new DomainException(					    "error.domain.accounting.PaymentPlan.is.already.defined.for.execution.year.in.service.agreement.template");				}			    }			}		    }