IDomain domain = domains.get(vmName);
if (domain != null) {
listener.getLogger().println("Preparing to revert " + vmName + " to snapshot " + snapshotName + ".");
try {
IDomainSnapshot snapshot = domain.snapshotLookupByName(snapshotName);
try {
Computer computer = slave.getComputer();
try {
computer.getChannel().syncLocalIO();
try {