commented out are leftovers.
I just noticed you ware testing same functionality but different way on HttpExchange.
in my case it is on servlets.
I don't mind closing this if you don't see any point.