code: private WMessages getWMessageInstance() {
  		MessageContainer container = getMessageContainer(component);
  		WMessages result = null;
  
  		if (container == null) {
  			LOG.warn("No MessageContainer as ancestor of " + component
  					+ ". Messages will not be added");
  		} else {
  			result = container.getMessages();
  
  			if (result == null) {
  				LOG.warn("No messages in container of " + component
  						+ ". Messages will not be added");
  			}
  		}
  
  		return result;
  	}
docs: Utility method that searches for the WMessages instance for the given component. If not found, a warning will be
  logged and null returned.
  
  @return the WMessages instance for the given component, or null if not found.