throws Exception {
VcTask task = VcContext.getTaskMgr().execute(new IVcTaskBody() {
public VcTask body() throws Exception {
VirtualMachine vm = getManagedObject();
spec.setName(MoUtil.toURLString(spec.getName()));
return new VcTask(TaskType.ReconfigVm, vm.reconfigure(spec), callback);
}
});
return task;
}