Bug 315315 Warning messages seen while starting up workbench
chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/impl/SerializerImpl.java
/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.birt.chart.model.ISerialization#fromXml(byte[], boolean)
	 */
	public Chart fromXml( ByteArrayInputStream byais, boolean bStripHeaders )
			throws IOException
	{
		
		ResourceSet rsChart = new ResourceSetImpl( );
		rsChart.getResourceFactoryRegistry( )
				.getExtensionToFactoryMap( )
				.put( "chart", new ModelResourceFactoryImpl( ) ); 
		
		
		Resource rChart = rsChart.createResource( URI.createFileURI( "test.chart" ) ); 
		Map<String, Object> options = new HashMap<String, Object>( );
		options.put( XMLResource.OPTION_ENCODING, "UTF-8" ); 
		if ( bStripHeaders )
		{
			options.put( XMLResource.OPTION_DECLARE_XML, Boolean.FALSE );
		}
		try
		{
			rChart.load( byais, options );
		}
		catch ( IOWrappedException e )
		{
			if ( rChart.getContents( ) == null
					|| rChart.getContents( ).isEmpty( ) )