// resolve the listing handler data provider
final IListingDataProvider dataProvider = context.getListingDataProviderResolver().resolve(request);
// resolve the list handler type
final ListHandlerType lht = listingDef.getListHandlerType();
if(lht == null) {
throw new ListingException(listingId, "No list handler type specified.");
}
// resolve the sorting to use
sorting = (sorting == null ? listingDef.getInitialSorting() : sorting);