sExtension = sOutputFormat;
if ( isOutputRendererSupported( outputFormat ) ) { sExtension = outputFormat; } else { sExtension = getFirstSupportedFormat( sSupportedFormats ); }
	public void setOutputFormat( String sOutputFormat )	{		if ( sOutputFormat.equalsIgnoreCase( "HTML" ) ) //$NON-NLS-1$		{			if ( isOutputRendererSupported( outputFormat ) )			{				sExtension = outputFormat;			}			else if ( isOutputRendererSupported( "SVG" ) ) //$NON-NLS-1$			{				// SVG is the preferred output for HTML				sExtension = "SVG"; //$NON-NLS-1$			}			else			{				sExtension = getFirstSupportedFormat( sSupportedFormats );			}		}		else if ( sOutputFormat.equalsIgnoreCase( "PDF" ) ) //$NON-NLS-1$		{			if ( isOutputRendererSupported( outputFormat ) )			{				sExtension = outputFormat;			}			else if ( isOutputRendererSupported( "PNG" ) ) //$NON-NLS-1$			{				// PNG is the preferred output for PDF				sExtension = "PNG"; //$NON-NLS-1$			}			else			{				sExtension = getFirstSupportedFormat( sSupportedFormats );			}		}		else		{			sExtension = sOutputFormat;		}	}