String fileName = url.getFile( ); if ( fileName != null ) { imageFile = fileName; }
imageFile = url.toString( );
	protected void handleFileImage( String imageFile, IImageContent imageContent )	{		// image file may be file: or a file path.		ReportDesignHandle reportDesign = context.getDesign( );		if ( reportDesign != null )		{			URL url = reportDesign.findResource( imageFile,					IResourceLocator.IMAGE );			if ( url != null )			{				String fileName = url.getFile( );				if ( fileName != null )				{					imageFile = fileName;				}			}		}		// Here uses the absolute file name as the URI for the image		// resource. The content of the file is loaded lazily to		// improve the performance.		imageContent.setURI( imageFile );		imageContent.setImageSource( IImageContent.IMAGE_FILE );		imageContent.setExtension( FileUtil.getExtFromFileName( imageFile ) );		if ( imageFile == null )		{			logger.log( Level.SEVERE,					"[ImageItemExecutor] Source image file is missing" ); //$NON-NLS-1$			context.addException( design.getHandle( ), new EngineException(					MessageConstants.MISSING_IMAGE_FILE_ERROR ) );		}	}