code: public static WComponent getTop(final WComponent comp) {
  		WComponent top = comp;
  
  		for (WComponent parent = top.getParent(); parent != null; parent = parent.getParent()) {
  			top = parent;
  		}
  
  		return top;
  	}
docs: Retrieves the top-level WComponent in the tree.
  
  @param comp the component branch to start from.
  @return the top-level WComponent in the tree.