code: private Map<WComponent, Stat> createWCTreeStats(final WComponent root) {
  		Map<WComponent, Stat> statsMap = new HashMap<>();
  
  		UIContextHolder.pushContext(uic);
  
  		try {
  			addStats(statsMap, root);
  		} finally {
  			UIContextHolder.popContext();
  		}
  
  		return statsMap;
  	}
docs: Finds all instances that make up the tree (static and dynamic) and gathers stats.
  
  @param root the root component to start from.
  @return the statistics for components in the given subtree.