Refactored methods for getting resource names