Correcting generics for getType in ComponentMetadata