reverted fix for 3101 for a separate pull-request
https://github.com/bkiselka/geotools/commit/a60b17199953e158f6a95e3c53b0037bc33e8824