Introducing templates object to create a transformer per thread, as a single transformer is not thread safe.