Bug 202947 API breakage from BIRT 2.1.x to BIRT 2.2 with XML stream
data/org.eclipse.birt.report.data.oda.xml/src/org/eclipse/birt/report/data/oda/xml/impl/Connection.java
extends
			org.eclipse.datatools.enablement.oda.xml.impl.Connection
{
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.datatools.connectivity.oda.IConnection#setAppContext(java.lang.Object)
	 */
	public void setAppContext( Object context ) throws OdaException
	{
		if ( !( context instanceof Map ) )
			throw new OdaException( Messages.getString( "Connection.InvalidAppContext" ) );
		Map appContext = (Map) context;
		if ( appContext.get( "org.eclipse.birt.report.data.oda.xml.inputStream" ) != null )
		{
			appContext.put( org.eclipse.datatools.enablement.oda.xml.Constants.APPCONTEXT_INPUTSTREAM,
					appContext.get( "org.eclipse.birt.report.data.oda.xml.inputStream" ) );
		}
		if ( appContext.get( "org.eclipse.birt.report.data.oda.xml.closeInputStream" ) != null )
		{
			appContext.put( org.eclipse.datatools.enablement.oda.xml.Constants.APPCONTEXT_CLOSEINPUTSTREAM,
					appContext.get( "org.eclipse.birt.report.data.oda.xml.closeInputStream" ) );
		}
		super.setAppContext( (Map) context );
	}
}