code: public static UIContext getContextForId(final WComponent root, final String id,
  			final boolean visibleOnly) {
  		ComponentWithContext comp = getComponentWithContextForId(root, id, visibleOnly);
  		return comp == null ? null : comp.getContext();
  	}
docs: Retrieves the context for the component with the given Id.
  
  @param root the root component to search from.
  @param id the id to search for.
  @param visibleOnly true if process visible only
  @return the context for the component with the given id, or null if not found.