Resolve Java 1.6 generics compilation issue