Java 6 genericification