def fill_report(params, datasource = nil)
      _JasperFillManager = Rjb.import('net.sf.jasperreports.engine.JasperFillManager')
      if datasource
        return _JasperFillManager.fillReport(@object_file.to_s, params)
      else
        _JREmptyDataSource = Rjb.import('net.sf.jasperreports.engine.JREmptyDataSource')
        return _JasperFillManager.fillReport(@object_file.to_s, params, _JREmptyDataSource.new)
      end
    end
def fill_report(params, datasource = nil)
      _JasperFillManager = Rjb.import('net.sf.jasperreports.engine.JasperFillManager')
      if datasource
        return _JasperFillManager.fillReport(@object_file.to_s, params)
      else
        _JREmptyDataSource = Rjb.import('net.sf.jasperreports.engine.JREmptyDataSource')
        return _JasperFillManager.fillReport(@object_file.to_s, params, _JREmptyDataSource.new)
      end
    end
Fill the report with valid method depending on datasource