if (dsHandle == null) {  String dsName = (String)( (ReportItemHandle) item.getHandle( ) ).getProperty(ReportItemHandle.DATA_SET_PROP); if(dsName!=null && dsName.length()>0) { context.addException(new EngineException(MessageConstants.UNDEFINED_DATASET_ERROR, dsName)); } }
		protected BaseQueryDefinition createQuery( ReportItemDesign item )		{			DataSetHandle dsHandle = ( (ReportItemHandle) item.getHandle( ) ).getDataSet( );			if ( dsHandle != null )			{				ReportItemHandle riHandle = (ReportItemHandle) item.getHandle( );				QueryDefinition query = new QueryDefinition( getParentQuery( ) );				query.setDataSetName( dsHandle.getName( ) );				ArrayList bindings = createParamBindings( riHandle						.paramBindingsIterator( ) );				if(bindings.size()>0)				{					query.getInputParamBindings( ).addAll(bindings);					IBaseTransform trans = getTransform();					if(trans!=null)					{						for(int i=0; i<bindings.size(); i++)						{							IInputParameterBinding binding = (IInputParameterBinding)bindings.get(i);							trans.getRowExpressions().add(binding.getExpr());						}					}									}								this.queries.add( query );				item.setQuery( query );				return query;			}			return null;		}