private void parseAggregatorConfiguration(Element configuration) {
    _aggregatorsConfDataList = new ArrayList<AggregatorConfigurationData>();

    NodeList nodes = configuration.getChildNodes();
    int n = 0;
    for (int i = 0; i < nodes.getLength(); i++) {
      Node node = nodes.item(i);
      if (node.getNodeType() == Node.ELEMENT_NODE) {
        n++;
        Element aggregatorNode = (Element) node;

        String className;
        Node classNameNode = aggregatorNode.getElementsByTagName("classname").item(0);
        if (classNameNode == null) {
          throw new RuntimeException("No tag 'classname' in aggregator " + n);
        }
        className = classNameNode.getTextContent();
        if (className.equals("")) {
          throw new RuntimeException("Empty tag 'classname' in aggregator " + n);
        }

        Node appTypeNode = aggregatorNode.getElementsByTagName("applicationtype").item(0);
        if (appTypeNode == null) {
          throw new RuntimeException(
              "No tag or invalid tag 'applicationtype' in aggregator " + n + " classname " + className);
        }
        String appTypeStr = appTypeNode.getTextContent();
        if (appTypeStr == null) {
          logger.error("Application type is not specified in aggregator " + n + " classname " + className
              + ". Skipping this configuration.");
          continue;
        }
        ApplicationType appType = new ApplicationType(appTypeStr);
        // Check if parameters are defined for the heuristic
        Map<String, String> paramsMap = Utils.getConfigurationParameters(aggregatorNode);

        AggregatorConfigurationData aggregatorData = new AggregatorConfigurationData(className, appType, paramsMap);

        _aggregatorsConfDataList.add(aggregatorData);

      }
    }
  }
Parses the Aggregator configuration file and loads the Aggregator Information to a list of AggregatorConfigurationData

@param configuration The dom Element to be parsed
app/com/linkedin/drelephant/configurations/aggregator/AggregatorConfiguration.java