Bug 182670 ScriptedDataSet does not use the same classloader when ran for Parameters than when ran for the report
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/utility/BirtUtility.java
*/
	public static String getDetailMessage( Throwable tx )
	{
		StringWriter out = new StringWriter( );
		PrintWriter print = new PrintWriter( out );
		try
		{
			tx.printStackTrace( print );
		}
		catch ( Throwable ex )
		{
		}
		print.flush( );
		print.close( );
		return out.getBuffer( ).toString( );
	}
	/**
	 * Write message into output stream.
	 * 
	 * @param out
	 * @param message
	 * @param msgType
	 */
	public static void writeMessage( OutputStream out, String content,
			String msgType ) throws IOException
	{
		String fontColor = "black"; 
		if ( IBirtConstants.MSG_ERROR.equalsIgnoreCase( msgType ) )
			fontColor = "red"; 
		String message = "<html><head><title>"