if ( dataSource instanceof OdaDataSourceHandle ) return newOdaDataSource( ( OdaDataSourceHandle ) dataSource );  if ( dataSource instanceof ScriptDataSourceHandle ) return newScriptDataSource( ( ScriptDataSourceHandle ) dataSource );   assert false; return null;
try { ModelDteApiAdapter tmpAdaptor = new ModelDteApiAdapter( context, null ); return tmpAdaptor.createDataSourceDesign( dataSource ); } catch ( BirtException e ) { throw new EngineException( e.getLocalizedMessage( ) ); }
	public IBaseDataSourceDesign createDataSourceDesign(			DataSourceHandle dataSource ) throws BirtException	{		if ( dataSource instanceof OdaDataSourceHandle )			return newOdaDataSource( ( OdaDataSourceHandle ) dataSource );		if ( dataSource instanceof ScriptDataSourceHandle )			return newScriptDataSource( ( ScriptDataSourceHandle ) dataSource );		// any other types are not supported		assert false;		return null;	}