final QuantitativeResultImpl result = new QuantitativeResultImpl();
result.setValues(new double[] {error});
//result.setValueType(Double.TYPE);
result.setValueUnit(CRSUtilities.getUnit(targetCRS.getCoordinateSystem()));
result.setErrorStatistic(description);
final PositionalAccuracyImpl accuracy = new PositionalAccuracyImpl(result);
accuracy.setEvaluationMethodType(EvaluationMethodType.DIRECT_INTERNAL);
accuracy.setEvaluationMethodDescription(description);
properties.put(Transformation.COORDINATE_OPERATION_ACCURACY_KEY, accuracy.unmodifiable());
}
/*
* Now creates the transformation.
*/
final MathTransform transform = getMathTransform();