Corrected getResourceTypeLabel() method