code: public RandomVariable getRate(AnalyticModel model) {
  		if(model==null) {
  			throw new IllegalArgumentException("model==null");
  		}
  
  		DiscountCurveInterface discountCurve = model.getDiscountCurve(discountCurveName);
  		if(discountCurve == null) {
  			throw new IllegalArgumentException("No discount curve with name '" + discountCurveName + "' was found in the model:\n" + model.toString());
  		}
  
  		double payoutDate = schedule.getPeriodStart(0);
  		double maturity = schedule.getPayment(0);
  		double periodLength = schedule.getPeriodLength(0);
  
  		RandomVariable discountFactor = discountCurve.getDiscountFactor(model, maturity);
  		RandomVariable discountFactorPayout = discountCurve.getDiscountFactor(model, payoutDate);
  
  		return discountFactorPayout.div(discountFactor).sub(1).div(periodLength);
  	}
docs: Return the deposit rate implied by the given model's curve.
  
  @param model The given model containing the curve of name <code>discountCurveName</code>.
  @return The value of the deposit rate implied by the given model's curve.