Thanks for the reply.
Our requirement is to push ".model.json" code of a page on activation to Couchbase DB.
For that, we are using custom transport handler, In "doActivate" method of Custom Transport Handler, we are calling following code to get json of mypage:
HttpServletRequest req = requestResponseFactory.createRequest("GET", "/content/website/mypage.model.json");
ByteArrayOutputStream out = new ByteArrayOutputStream();
HttpServletResponse resp = requestResponseFactory.createResponse(out);
We are getting empty response. If i call the same url in browser then i am getting expected json response