sqlDataSet.load();
// Apply the in-memory filter in order to cover all the filter properties non specified as SQL conditions.
DataFilter _remainingFilter = (DataFilter) filter.cloneFilter();
List<String> propIds = currentStatement.getFilterPropertyIds();
for (String propId : propIds) _remainingFilter.removeProperty(propId);
DataSet result = sqlDataSet._filterInMemory(_remainingFilter);
// If the in-memory filter applies then return it.
if (result != null) return result;
return sqlDataSet;