@Override
	/** If the HTML.tag that we get represents a class in an HTMLContainer in *my* hierarchy,
	 * then I need to pop this container, so we don't get the whole body appearing in the TITLE
	 * element (as happened prior to this revision).
	 */
	public void handleEndTag(HTML.Tag tag, int pos) {
		logger.info(String.format("HTMLParser.handleEndTag(%s)", tag));
		Class<?> classForTagType = HTMLComponentFactory.classForTagType(tag);
		HTMLComponent curComp = currentComponent();
		
		// If this end tag matches the current component, pop it.
		// The test may be redundant but I'm wrestling with stackunderflow...
		if (curComp.getClass().isAssignableFrom(classForTagType)) {
			popComponent();
		}
		// If this end tag represents a container, pop that as well.
		if (HTMLContainer.class.isAssignableFrom(classForTagType)) {
			popContainer();
		}
	}