No need to test dispatches.hasNext() more than once.
Add some additional comments.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1529702 13f79535-47bb-0310-9956-ffa450edef68