I am using vijava. I have MOR object. How do I get HostSystem for example from the MOR?
I was hoping using the following will work:
HostSystem hs = (HostSystem) new InventoryNavigator(si.getRootFolder()).searchManagedEntity("HostSystem", mor.getVal());
where "mor" is the ManagedObjectReference of the HostSystem.
Thanks in advance