res.taskMonitoringEnabled = arg.taskMonitoringEnabled;
if (arg.taskMonitoringEnabled) {
GridNodeLocalMap<String, VisorComputeMonitoringHolder> storage = g.nodeLocalMap();
VisorComputeMonitoringHolder holder = storage.get(COMPUTE_MONITORING_HOLDER_KEY);
if (holder == null) {
VisorComputeMonitoringHolder holderNew = new VisorComputeMonitoringHolder();
VisorComputeMonitoringHolder holderOld = storage.putIfAbsent(COMPUTE_MONITORING_HOLDER_KEY, holderNew);
holder = holderOld == null ? holderNew : holderOld;
}
// Enable task monitoring for new node in grid.