code: private AccumulatorDefinition createAccumulatorDefinition(String name, String valueName, String statName){
  		AccumulatorDefinition definition = new AccumulatorDefinition();
  		definition.setName(name);
  		definition.setProducerName(getProducerId());
  		definition.setStatName(statName);
  		definition.setValueName(valueName);
  		definition.setIntervalName(MoskitoConfigurationHolder.getConfiguration().getErrorHandlingConfig().getAutoChartErrorsInterval());
  		return definition;
  	}
docs: Helper method to create a accumulator definiton.
  @param name name of the accumulator.
  @param valueName name of the value (initial or total).
  @param statName name of the stat (exception name or 'cumulated').
  @return