pass string to JavaProducer