`request` is appended to quite a bit in this method; you may want to change over to using a `StringBuffer`.