Fix fart sniff to work with Java 6