Fix for JDK6 bug: http://bugs.java.com/view_bug.do?bug_id=6569074 This was fixed in jdk 7u72 ... so we'll keep this bit uncleaner version for a while ...