System.out.println("The new VM " +
vm.getName() + " has status: " + vm.status());
// And we can also use xpath expressions
System.out.println("The path of the disk is");
System.out.println( "\t" + vm.xpath("template/disk/source") );
// Let's delete the VirtualMachine object.
vm = null;
// The reference is lost, but we can ask OpenNebula about the VM