EngineResourceHandle rc = EngineResourceHandle.getInstance( );
	private void appendErrorMessage( int index, ElementExceptionInfo info )	{				EngineResourceHandle rc = EngineResourceHandle.getInstance( );		writer.writeCode( "			<div>" );		writer.writeCode( "				<div  id=\"error_title\" style=\"text-decoration:underline\">" );		String name = info.getName( );		if ( name != null )		{			writer.text( rc.getMessage( MessageConstants.REPORT_ERROR_MESSAGE,				new Object[]{info.getType( ), name } ), false );		}		else		{			writer.text( rc.getMessage( MessageConstants.REPORT_ERROR_MESSAGE_WITH_ID,					new Object[]{info.getType( ), info.getID( ) } ), false );		}			writer.writeCode( "</div>" );//$NON-NLS-1$					ArrayList errorList = info.getErrorList( );		ArrayList countList = info.getCountList( );		for ( int i = 0; i < errorList.size( ); i++ )		{			String errorId = "document.getElementById('error_detail" + index + "_" + i + "')";			String errorIcon = "document.getElementById('error_icon" + index + "_" + i + "')";			String onClick = "if (" + errorId + ".style.display == 'none') { "					+ errorIcon + ".innerHTML = '- '; " + errorId					+ ".style.display = 'block'; }" + "else { " + errorIcon					+ ".innerHTML = '+ '; " + errorId + ".style.display = 'none'; }";			writer.writeCode("<div>");			BirtException ex = (BirtException) errorList.get( i );			writer.writeCode( "<span id=\"error_icon" + index + "_" + i					+ "\"  style=\"cursor:pointer\" onclick=\"" + onClick					+ "\" > + </span>" );						writer.text( ex.getLocalizedMessage( ) ); 											writer.writeCode( "				<pre id=\"error_detail" + index + "_" + i //$NON-NLS-1$				+ "\" style=\"display:none;\" >" );//$NON-NLS-1$								String messageTitle = rc.getMessage(					MessageConstants.REPORT_ERROR_ID, new Object[]{							ex.getErrorCode( ) ,							countList.get( i )} );			String detailTag = rc					.getMessage( MessageConstants.REPORT_ERROR_DETAIL );			String messageBody = getDetailMessage( ex );			boolean indent = writer.isIndent( );			writer.setIndent( false );			writer.text( messageTitle, false );			writer.writeCode( "\r\n" );//$NON-NLS-1$			writer.text( detailTag, false );			writer.text( messageBody, false );			writer.setIndent( indent );			writer.writeCode( "				</pre>" ); //$NON-NLS-1$			writer.writeCode("</div>");		}				writer.writeCode( "</div>" ); //$NON-NLS-1$		writer.writeCode( "<br>" ); //$NON-NLS-1$	}