class RatesCalibrationCsvLoader {

  public static ImmutableMap<CurveGroupName, RatesCurveGroupDefinition> loadWithSeasonality(
      ResourceLocator groupsResource,
      ResourceLocator settingsResource,
      ResourceLocator seasonalityResource,
      Collection<ResourceLocator> curveNodeResources) {

    Collection<CharSource> curveNodeCharSources = curveNodeResources.stream().map(r -> r.getCharSource()).collect(toList());
    return parseWithSeasonality(
        groupsResource.getCharSource(),
        settingsResource.getCharSource(),
        seasonalityResource.getCharSource(),
        curveNodeCharSources);
  }

  private  RatesCalibrationCsvLoader();

}