private PentahoTableDataFactory getInputParamDataFactory() {
PentahoTableDataFactory factory = null;
JFreeReportAction jFreeReportAction = (JFreeReportAction) getActionDefinition();
ActionInput reportDataParam = (ActionInput) jFreeReportAction.getData();
Object dataObject = reportDataParam != null ? reportDataParam.getValue() : null;
if ( ( dataObject instanceof IPentahoResultSet ) || ( dataObject instanceof TableModel ) ) {
factory = new PentahoTableDataFactory();
if ( dataObject instanceof IPentahoResultSet ) {
IPentahoResultSet resultset = (IPentahoResultSet) dataObject;
if ( resultset.isScrollable() ) {