If I recall correctly, there is already a framework to know what kind of hypervisor the entity is in a subclass like TNLibvirtEntity or something like that, it would be better to use it