public void updateConfig(final String name,
final ResourceAllocationInfo cpuAllocation,
final ResourceAllocationInfo memAllocation) throws Exception {
VcContext.getTaskMgr().execPseudoTask("ResourcePool.updateConfig",
VcEventType.ResourcePoolReconfigured, getMoRef(),
new IVcPseudoTaskBody() {
@Override
public ManagedObjectReference body() throws Exception {
final ResourcePool rp = getManagedObject();
ResourceConfigSpec spec = null;
if (cpuAllocation != null || memAllocation != null) {