[CDAP-774] Made rewriteRequest return the rewrittenRequest