Bug 168304 Context root issue when set to other BIRT Web Project.[0603]
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/ReportEngineService.java
this.imageHandler.getImage( outputStream,
					this.imageDirectory,
					imageId );
		}
		catch ( EngineException e )
		{
			AxisFault fault = new AxisFault( e.getLocalizedMessage( ) );
			fault.setFaultCode( new QName( "ReportEngineService.renderImage( )" ) ); 
			fault.setFaultString( e.getLocalizedMessage( ) );
			throw fault;
		}
	}
	/**
	 * Create HTML render context.
	 * 
	 * @param svgFlag
	 * @param servletPath
	 * @return HTML render context from the given arguments
	 */
	private HTMLRenderContext createHTMLrenderContext( boolean svgFlag,
			String servletPath )
	{
		HTMLRenderContext renderContext = new HTMLRenderContext( );
		renderContext.setImageDirectory( imageDirectory );
		renderContext.setBaseImageURL( contextPath + imageBaseUrl );
		if ( servletPath != null && servletPath.length( ) > 0 )
		{
			renderContext.setBaseURL( this.contextPath + servletPath );
		}
		else