code: public static ForwardCurveInterpolation createForwardCurveFromForwards(String name, double[] times, double[] givenForwards, AnalyticModel model, String discountCurveName, double paymentOffset) {
  		RandomVariable[] givenForwardsAsRandomVariables = DoubleStream.of(givenForwards).mapToObj(new DoubleFunction<RandomVariableFromDoubleArray>() {
  			@Override
  			public RandomVariableFromDoubleArray apply(double x) { return new RandomVariableFromDoubleArray(x); }
  		}).toArray(RandomVariable[]::new);
  		return createForwardCurveFromForwards(name, times, givenForwardsAsRandomVariables, model, discountCurveName, paymentOffset);
  	}
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.