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/service/ReportEngineService.java
private HTMLRenderOption createHTMLRenderOption( boolean svgFlag,
			String servletPath, HttpServletRequest request )
	{
		String baseURL = null;
		boolean isDesigner = ParameterAccessor.isDesigner( request );
		
		if ( !isDesigner )
			baseURL = ParameterAccessor.getBaseURL( );
		if ( baseURL == null )
			baseURL = ""; 
		
		baseURL += this.contextPath;
		HTMLRenderOption renderOption = new HTMLRenderOption( );
		renderOption.setImageDirectory( ParameterAccessor
				.getImageTempFolder( request ) );
		renderOption.setBaseImageURL( baseURL + imageBaseUrl );
		if ( servletPath != null && servletPath.length( ) > 0 )
		{
			renderOption.setBaseURL( baseURL + servletPath );
		}
		else
		{
			renderOption.setBaseURL( baseURL + IBirtConstants.SERVLET_PATH_RUN );
		}
		renderOption.setSupportedImageFormats( svgFlag
				? "PNG;GIF;JPG;BMP;SVG" : "PNG;GIF;JPG;BMP" ); 
		return renderOption;
	}
	/**
	 * Create PDF render option.