Refactored setHypervisor