398467 Servlet 3.1 Non Blocking IO

More refinements to avoid duplicate code and optimise common paths
removed debug prints