Refactor the logic to identify nodes. Add facility to retrieve current nodes from context. Signed-off-by: Luca Vizzarro <luca.vizzarro@arm.com> Reviewed-by: Paul Szczepanek <paul.szczepanek@arm.com> ---