We have to make this method synchronized as rewriter instance is shared by multiple threads in jdbc driver