Bug 315315 Warning messages seen while starting up workbench
chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/impl/SerializerImpl.java
{
				throw e;
			}
		}
		return (Chart) rChart.getContents( ).get( 0 );
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.eclipse.birt.chart.model.Serializer#loadPreferences(java.io.InputStream
	 * )
	 */
	public ChartPreferences loadPreferences( InputStream is )
			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" ); 
		rChart.load( is, options );
		return (ChartPreferences) rChart.getContents( ).get( 0 );
	}
}