ArrayList codeList = new ArrayList();  styleSheet.inherit();  this.colorConverter.setTemporaryColors( styleSheet.getColors() );  boolean defaultFontDefined = false; boolean defaultLabelDefined = false; HashMap fonts = styleSheet.getFonts(); Set keys = fonts.keySet(); for (Iterator iter = keys.iterator(); iter.hasNext();) { String groupName = (String) iter.next(); if ("default".equals(groupName)) { defaultFontDefined = true; HashMap group = (HashMap) fonts.get( groupName ); processFont(group, groupName, null, codeList, styleSheet, true ); } else if ("label".equals(groupName)) { defaultLabelDefined = true; HashMap group = (HashMap) fonts.get( groupName ); processLabel(group, "default", null, codeList, styleSheet, true ); } else { HashMap group = (HashMap) fonts.get( groupName ); processFont(group, groupName, null, codeList, styleSheet, true ); } }   boolean defaultBackgroundDefined = false; HashMap backgrounds = styleSheet.getBackgrounds(); keys = backgrounds.keySet(); for (Iterator iter = keys.iterator(); iter.hasNext();) { String groupName = (String) iter.next(); if ("default".equals(groupName)) { defaultBackgroundDefined = true; } HashMap group = (HashMap) backgrounds.get( groupName ); processBackground(groupName, group, null, codeList, styleSheet, true ); }   boolean defaultBorderDefined = false; HashMap borders = styleSheet.getBorders(); keys = borders.keySet(); for (Iterator iter = keys.iterator(); iter.hasNext();) { String groupName = (String) iter.next(); if ("default".equals(groupName)) { defaultBorderDefined = true; } HashMap group = (HashMap) borders.get( groupName ); processBackground(groupName, group, null, codeList, styleSheet, true ); }   processDefaultStyle( defaultFontDefined, defaultLabelDefined, defaultBackgroundDefined, defaultBorderDefined, codeList, styleSheet );
	public void convertStyleSheet( StringList sourceCode, StyleSheet styleSheet ) {		// search for the position to include the style-sheet definitions:		int index = -1;		while (sourceCode.next()) {			String line = sourceCode.getCurrent();			if (INCLUDE.equals(line)) {				index = sourceCode.getCurrentIndex() + 1;				break;			}		}		if (index == -1) {			throw new BuildException("Unable to modify SytleSheet.java, include point [" + INCLUDE + "] not found.");		}		// now insert all used style-definitions:		String[] styleNames = styleSheet.getUsedStyleNames();		// problem: could be that there are dependencies between styles...		// than the base style needs to be defined before the dependent style.	}