workaround broken java 1.6 generics bug