6566676869707172737475
//Find if vm by name vmname already exists VirtualMachine existingVm=vsphereServer.findVmByName(vmName); if (existingVm!=null) { vsphereServer.vncDeActivateVm(existingVm); } else { System.out.println("VM "+vmName+" not found"); }