}
try {
return Resampler2D.reproject(source, targetCRS, targetGG, interpolation,
(hints instanceof Hints) ? hints : new Hints(hints), bgValues);
} catch (FactoryException exception) {
throw new CannotReprojectException(Errors.format(
ErrorKeys.CANT_REPROJECT_$1, source.getName()), exception);
} catch (TransformException exception) {
throw new CannotReprojectException(Errors.format(
ErrorKeys.CANT_REPROJECT_$1, source.getName()), exception);
}
}