return null if hierarchy element does not exists
add search result wrapper to template
Custom js method to insert searchresult.
Refaktoring methods
add tests