These lines are pretty ugly and makes me think that we should just have a:
```client.redirect(context, false, false);```
and do the redirection or write in the response inside the ```redirect``` method...