PARSER.process(source, new TemplateParseContext(device, layout));  if ( Utils.hasSpanAttributes( container ) ) { device.append("</span>"); }
if ( Utils.hasSpanAttributes( container ) ) { device.append("</span>"); }
    private void write(Device device, STemplateLayout layout)        throws IOException {        final DataSource source = layout.getDataSource();        SComponent container = ( SComponent ) layout.getContainer();        if(source == null) {            device.append("Unable to open template-file <b>'");            device.append(source);            device.append("'</b>");        }	else {        	if ( Utils.hasSpanAttributes( container ) )         	 {         		device.append("<span style=\"");        		Utils.writeSpanAttributes( device, container );            	device.append("\">");			 }            PARSER.process(source,                           new TemplateParseContext(device, layout));        	if ( Utils.hasSpanAttributes( container ) )         	 {         		device.append("</span>");			 }        }    }