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());
}
dataPaginator.setRequestParameterMapFinder(new RequestParameterMapFinderImpl());
map.put(StringUtils.unCapitalize(mo.getName()), dataPaginator);
map.put(mo.getName(), dataPaginator);
//dataPaginator.filter();
}