AttributeBuilder.buildStyle( styleBuffer, style, this ); if ( styleBuffer.length( ) > 0 )
if ( style.entrySet( ).size( ) == 0 )
	public void startReport( Report report )	{		if ( logger.isTraceEnabled() )		{			logger.trace( "[HTMLReportEmitter] Start emitter." ); //$NON-NLS-1$		}		this.report = report;		OutputStream out = this.resourceManager.openOutputStream( REPORT_FILE );		writer.open( out, "UTF-8" ); //$NON-NLS-1$		writer.openTag( "!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\"" ); //$NON-NLS-1$		writer.closeNoEndTag( );		writer.openTag( "html" ); //$NON-NLS-1$		writer.openTag( "META" ); //$NON-NLS-1$		writer.attribute( "http-equiv", "Content-Type" ); //$NON-NLS-1$		writer.attribute( "content", "text/html; charset=UTF-8" ); //$NON-NLS-1$		writer.closeNoEndTag( );		writer.openTag( "head" ); //$NON-NLS-1$		StyleDesign style;		boolean hasStyle = false;		StringBuffer styleBuffer = new StringBuffer( );		if ( report == null )		{			if ( logger.isWarnEnabled( ) )			{				logger.warn( "[HTMLReportEmitter] Report object is null." ); //$NON-NLS-1$			}		}		else		{			for ( int n = 0; n < report.getStyleCount( ); n++ )			{				styleBuffer.delete( 0, styleBuffer.capacity( ) );				style = report.getStyle( n );				if ( style != null && style.entrySet( ).size( ) > 0 )				{					AttributeBuilder.buildStyle( styleBuffer, style, this );					if ( styleBuffer.length( ) > 0 )					{						if ( !hasStyle )						{							hasStyle = true;							writer.openTag( "style" ); //$NON-NLS-1$							writer.attribute( "type", //$NON-NLS-1$									"text/css" ); //$NON-NLS-1$						}						writer								.style( style.getName( ), styleBuffer										.toString( ) );					}				}			}		}		if ( hasStyle )		{			writer.closeTag( "style" ); //$NON-NLS-1$		}		writer.closeTag( "head" ); //$NON-NLS-1$	}