Generics reflection code implemented