/**
  * Creates the RRD repository.
  *
  * @return the RRD repository
  * @throws IOException Signals that an I/O exception has occurred.
  */
 private RrdRepository createRrdRepository(String collection) throws IOException {
   XmlRrd rrd = m_xmlCollectionDao.getDataCollectionByName(collection).getXmlRrd();
   RrdRepository repository = new RrdRepository();
   repository.setRrdBaseDir(getSnmpRootDirectory());
   repository.setHeartBeat(rrd.getStep() * 2);
   repository.setStep(rrd.getStep());
   repository.setRraList(rrd.getXmlRras());
   return repository;
 }