Get a Generic Type Class in Java: Why T.class Does Not Work | CodeTrail