code: public static ForwardCurve createForwardCurveFromForwards(String name, double[] times, double[] givenForwards, AnalyticModelInterface model, String discountCurveName, double paymentOffset) {
  		ForwardCurve forwardCurve = new ForwardCurve(name, paymentOffset, InterpolationEntityForward.FORWARD, discountCurveName);
  
  		for(int timeIndex=0; timeIndex<times.length;timeIndex++) {
  			double	fixingTime	= times[timeIndex];
  			boolean	isParameter	= (fixingTime > 0);
  			forwardCurve.addForward(model, fixingTime, givenForwards[timeIndex], isParameter);
  		}
  		return forwardCurve;
  	}
docs: Create a forward curve from given times and given forwards with respect to an associated discount curve and payment offset.
  
  @param name The name of this curve.
  @param times A vector of given time points.
  @param givenForwards A vector of given forwards (corresponding to the given time points).
  @param model An analytic model providing a context. The discount curve (if needed) is obtained from this model.
  @param discountCurveName Name of the discount curve associated with this index (associated with it's funding or collateralization).
  @param paymentOffset Time between fixing and payment.
  @return A new ForwardCurve object.