Bug 324070 Refactor data set editor pages' codes[30967]
Build Identifier: 20100828 Refactor data set editor pages' codes. Reproducible: Always
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/data/ui/util/DataSetProvider.java
* @return IPreparedQeury
	 * @throws BirtException
	 */
	public final IPreparedQuery prepareQuery( DataSetHandle dataSet,
			ParamBindingHandle[] bindingParams, boolean useColumnHints,
			boolean useFilters ) throws BirtException
	{
		DataRequestSession session = getDataRequestSession( dataSet );
		IBaseDataSetDesign dataSetDesign = getDataSetDesign( dataSet,
				useColumnHints,
				useFilters );
		return session.prepare( getQueryDefinition( dataSetDesign,
				bindingParams ),
				null );
	}
	/**
	 * @param parent
	 * @return
	 */
	public static ClassLoader getCustomScriptClassLoader( ClassLoader parent,
			ModuleHandle handle )
	{
		List<URL> urls = getClassPathURLs( handle == null ? null
				: handle.getFileName( ) );
		loadResourceFolderScriptLibs( handle, urls );
		if ( urls.size( ) == 0 )
			return parent;
		return new URLClassLoader( urls.toArray( new URL[0] ), parent );
	}
	private static void loadResourceFolderScriptLibs( ModuleHandle handle,