Added support for ProducerTemplate.