// Create the command to execute
sqlCommand = createStatementSql(dataConnection, statement, type);
if ((inputParameters != null) && (inputParameters.size() != 0)) {
dataResult = sqlCommand.execute(inputParameters);
} else
dataResult = sqlCommand.execute();
if (type.equalsIgnoreCase("SELECT")) {
ScrollableDataResult scrollableDataResult = (ScrollableDataResult) dataResult
.getDataObject();
result = scrollableDataResult.getSourceBean();
} // if (type.equalsIgnoreCase("SELECT"))