@Override
	public void startSetup(Attributes atts) {
		super.startSetup(atts);
		
		String path = atts.getValue(A_PATH);
		
		URL url_path = null;
		if (path == null) {
			System.out.println("WARNING: path attribute not provided for HTMLViewerMenuItem: " + getText());
		} else if (path.indexOf("://") != -1) {
			try {
				url_path = new URL(path);
			} catch (java.net.MalformedURLException e) {
				System.out.println("WARNING: path for HTMLViewerMenuItem: " + getText() + " was not a valid URL: " + path);
			}
		} else {
			url_path = Thread.currentThread().getContextClassLoader().getResource(path);
		}
		
		if (url_path != null) {
			setResourceURL(url_path);
			
			addActionListener(this);
			setEnabled(true);
		} else {
			setEnabled(false);
		}
	}