I would argue that this break encapsulation. The idea is that ProxyHandler can be used by other services not just ProxyServlet (i.e. GadgetHandler).
So the ProxyHandler should handle any User-Agent value, and if needed to pass more info down, then maybe ProxyUri is the place to change. http://codereview.appspot.com/1987047/
