Added workaround for
http://bugs.java.com/bugdatabase/view_bug.do?bug_id=4776403