Shouldn't you be able to replace this with:

```java
return requestContext.getWebRequest()
```

If it's unset then there's a bug somewhere.