code: public synchronized void harmonizeIndices() {
  		ArrayList<XEventClass> classList = new ArrayList<XEventClass>(classMap
  				.values());
  		Collections.sort(classList);
  		classMap.clear();
  		for (int i = 0; i < classList.size(); i++) {
  			XEventClass original = classList.get(i);
  			XEventClass harmonized = new XEventClass(original.getId(), i);
  			harmonized.setSize(original.size());
  			classMap.put(harmonized.getId(), harmonized);
  		}
  	}
docs: This method harmonizeds the indices of all contained event classes.
  Indices are re-assigned according to the natural order of class
  identities, i.e., the alphabetical order of class identity strings. This
  method should be called after the composition or derivation of event
  classes is complete, e.g., after scanning a log for generating the log
  info. Using parties should not have to worry about event class
  harmonization, and can thus safely ignore this method.