/**
 * Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies
 *
 * Please see distribution for license.
 */
package com.opengamma.financial.analytics.volatility.surface;

import org.apache.commons.lang.Validate;

import com.opengamma.core.config.ConfigSource;
import com.opengamma.id.VersionCorrection;

/**
 *
 */
public class ConfigDBFuturePriceCurveSpecificationSource implements FuturePriceCurveSpecificationSource {
  private final ConfigSource _configSource;

  public ConfigDBFuturePriceCurveSpecificationSource(final ConfigSource configSource) {
    Validate.notNull(configSource, "config source");
    _configSource = configSource;
  }

  protected ConfigSource getConfigSource() {
    return _configSource;
  }

  @Override
  public FuturePriceCurveSpecification getSpecification(final String name, final String instrumentType) {
    return _configSource.getLatestByName(FuturePriceCurveSpecification.class, name + "_" + instrumentType);
  }

  @Override
  public FuturePriceCurveSpecification getSpecification(final String name, final String instrumentType, final VersionCorrection versionCorrection) {
    return _configSource.getSingle(FuturePriceCurveSpecification.class, name, versionCorrection);
  }
}

@@ -1213,16 +1213,39 @@
 ss, name
+ + %22_%22 + instrumentType
 , versio

Fix versioned method