provide servlet response/request in rest controller