Simple, you need the original address, which will be the same as the one where your answer will be sent, it’s easy to save it in the request and you can get:.
String originalURI = request.forwardURI
//Do this where request is available, ex: Controllers :)
// Everywhere else you can use RequestContextHolder
.
.
,