Failing binding to Java generics