Hopefully fix for TextFlow hack on Java 1.8.0_20 and later. Spawns a lot of threads though...