private class ResourcesDataProvider extends AbstractDataSetProvider<Resource, ResourcesFilterData> {
private static final long serialVersionUID = 1L;
@Override
protected SlicingDataSet<Resource> getDataSet(ResourcesFilterData filter) {
SortDescriptor sortDescriptor = null;
if(getSort() != null) {
sortDescriptor = new SortDescriptor(
getSort().getProperty(), getSort().isAscending(), localeService.getCurrentLanguage());
}
Contract contract = (Contract) getDefaultModelObject();
String searchQuery = filter != null ? filter.getSearchQuery() : null;
ResourcesCriteria resCrit = new ResourcesCriteria();