class CurrencyParameterSensitivities implements FxConvertible<CurrencyParameterSensitivities>, ImmutableBean, Serializable {

  public CurrencyParameterSensitivities split() {
    if (!sensitivities.stream().anyMatch(s -> s.getParameterSplit().isPresent())) {
      return this;
    }
    return of(sensitivities.stream()
        .flatMap(s -> s.split().stream())
        .collect(toImmutableList()));
  }

  @ImmutableConstructor private  CurrencyParameterSensitivities(List<? extends CurrencyParameterSensitivity> sensitivities);
  private  CurrencyParameterSensitivities(ImmutableList<CurrencyParameterSensitivity> sensitivities);

}