class CurrencyPairsConfigDocumentLoader {

  Set<CurrencyPair> readPairs(BufferedReader reader) throws IOException {
    String pairStr;
    Set<CurrencyPair> pairs = new HashSet<CurrencyPair>();
    while ((pairStr = reader.readLine()) != null) {
      try {
        CurrencyPair pair = CurrencyPair.parse(pairStr.trim());
        if (pairs.add(pair)) {
          s_logger.debug("Added currency pair " + pair.getName());
        } else {
          s_logger.debug("Not adding duplicate currency pair " + pair.getName());
        }
      } catch (IllegalArgumentException e) {
        s_logger.warn("Unable to create currency pair from " + pairStr, e);
      }
    }
    return pairs;
  }

  public  CurrencyPairsConfigDocumentLoader(ConfigMaster configMaster, String dataFilePath, String configName);

}