abstract code for resource listing.