@Bean (scope = DefaultScopes.SESSION, aliases="pagers")
public Map<String, FilterablePageable> paginators () throws Exception {
DeferredResourceCreator drc = new DeferredResourceCreator(){
public void createResource(Map map, CrudManagedObject mo) throws Exception{
DaoFilteringPagingDataSource dataSource = new DaoFilteringPagingDataSource();
dataSource.setDao( repos().get( mo.getName() ));
FilteringPaginator dataPaginator = null;
if (mo.getPropertyNames() == null) {
dataPaginator = new FilteringPaginator(dataSource, mo.getEntityType());
} else {
dataPaginator = new FilteringPaginator(dataSource, mo.getEntityType(), mo.getPropertyNames());