code: public AccumulatorDefinition toAccumulatorDefinition(String producerId){
  		AccumulatorDefinition ret = new AccumulatorDefinition();
  		ret.setProducerName(producerId);
  		ret.setName(replaceName(producerId));
  		ret.setStatName(getStatName());
  		ret.setValueName(getValueName());
  		ret.setIntervalName(getIntervalName());
  		ret.setTimeUnit(getTimeUnit());
  		return ret;
  
  	}
docs: Creates a new AccumulatorDefinition object for matched producer.
  @param producerId
  @return