if (original.getGroup("before") != null) { this.containsBeforeStyle = true; } if (original.getGroup("after") != null) { this.containsAfterStyle = true; }
	private void copyStyles( StyleSheet parent ) {		HashMap source = parent.stylesByName;		HashMap target = this.stylesByName;		Set keys = source.keySet();		for (Iterator iter = keys.iterator(); iter.hasNext();) {			Object key = iter.next();			Style original = (Style) source.get( key );			Style existing = (Style) target.get( key );			if (existing == null) {				Style copy = new Style( original );				target.put(key, copy );				this.styles.add( copy );			} else {				existing.add( original );			}		}	}