Workaround for Java 7 bug

There seems to be a bug in Java 7, which caused:
https://trac.openmicroscopy.org.uk/ome/ticket/12119

This is the workaround mentioned in the bug database:
http://bugs.java.com/bugdatabase/view_bug.do?bug_id=7075600

Unfortunately I wasn't able to reproduce the bug, so I don't know if the workaround really helps (or even if there is a reasonable chance to hit this bug at all).