def METHOD_NAME(self, resource):
    resource_display = str(resource)
    return_value = self.get_resource_display_from_setting(resource_display)
    if return_value is not None:
        resource_display = return_value
    return resource_display