class VolatilityFunctionFactory {

  public static VolatilityFunctionProvider<?> getCalculator(final String name) {
    final VolatilityFunctionProvider<?> calculator = s_instances.get(name);
    if (calculator != null) {
      return calculator;
    }
    throw new IllegalArgumentException("Could not get calculator for " + name);
  }

  private  VolatilityFunctionFactory();

}