[ROASTER-45] Using generic parameter with CanonicalClassName create errors