Add functions to get resource type name and by name.