class FixedIncomeCalculatorFactory {

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

  private  FixedIncomeCalculatorFactory();

}