loadSnapshotFromMoRef(ManagedObjectReference moRef,
VcVirtualMachineImpl parent, String name)
throws Exception {
AuAssert.check(VcContext.isInSession());
VcSnapshotImpl obj = null;
ManagedObject mo = MoUtil.getManagedObject(moRef);
AuAssert.check(mo instanceof Snapshot);
obj = new VcSnapshotImpl((Snapshot)mo, parent, name);
Profiler.inc(StatsType.VC_LOAD_MO, obj);
return obj;
}