Query capability for HierarchicalGraph.
Remove unnecessary try catch block.
Add HandlesEvent annotation.