Proper fix for toaster not working on <= Java 6