prTraverse detect leaf by matching on one of the obligatory keys according to description file spec

if spec is changed this line must be changed