code: public Context getSelectedContext() {
  		SiteNode node = (SiteNode) treeContext.getLastSelectedPathComponent();
  		if (node == null || node.isRoot()) {
  			return null;
  		}
  		Target target = (Target) node.getUserObject();
  		if (target != null) {
  			return target.getContext();
  		}
  		return null;
  	}
docs: Returns the Context which is selected in the Site Map panel of the UI
  or {@code null} if nothing is selected or the selection is the root node.
  
  @return Context the context which is selected in the UI
  @since 2.7.0