code: protected JRDataSource buildJRDataSource(Object dsCandidate) {
  		if (dsCandidate == null)
  			return null;
  
  		if (dsCandidate instanceof JRDataSource)
  			return (JRDataSource) dsCandidate;
  
  		if (dsCandidate instanceof Collection)
  			return new JRBeanCollectionDataSource((Collection) dsCandidate);
  
  		if (dsCandidate instanceof ResultSet)
  			return new JRResultSetDataSource((ResultSet) dsCandidate);
  
  		if (dsCandidate.getClass().isArray())
  			return new JRBeanArrayDataSource((Object[]) dsCandidate);
  
  
  		throw new DJException("class " + dsCandidate.getClass().getName() + " is not supported " +
  				"from the DynamicJasper WebWorK result type. Provide a JRDataSource implementation instead");
  	}
docs: returns the JRDataSource pointed by the result-type parameter "dataSource"
  Accepts JRDataSource, Collection, ResultSet and Object[]
  @param dsCandidate
  @return