           if declareAttributeValues.value?
             syncState.spv.set(currentPath, declareAttributeValues.value)
 
-    if currentAttributes
-      leafParam = currentPath
-      leafIsObject = currentAttributes.object?[1]
-      if leafIsObject == 0
-        leafTimestamp = Math.max(leafTimestamp, currentAttributes.object[0])
-    else
-      leafTimestamp = Math.max(leafTimestamp, currentTimestamp)
-
     for child of children
       # This fine expression avoids duplicate visits
       if ((currentPath.wildcard ^ children[child][0].wildcard) & ((1 << currentPath.length) - 1)) >> leafParam.length == 0


      if ((path.wildcard | path.alias) & ((1 << (path.length - 1)) - 1)) == 0
        parent = sessionData.deviceData.paths.add(parent)
        unpacked ?= device.unpack(sessionData.device, path)
        processInstances(sessionData, parent, unpacked, keys, minInstances, maxInstances)
      else
        parentsUnpacked = device.unpack(sessionData.deviceData, parent)

          if attrs = allDeclareAttributeValues.get(path)
            for attrName of attrs
              declareAttributeValues[attrName] = attrs[attrName]

    if currentAttributes
      leafParam = currentPath
      leafIsObject = currentAttributes.object?[1]
      if leafIsObject == 0
        leafTimestamp = Math.max(leafTimestamp, currentAttributes.object[0])
    else
      leafTimestamp = Math.max(leafTimestamp, currentTimestamp)

    switch (if currentPath[0] != '*' then currentPath[0] else leafParam[0])
      when 'Reboot'
