added get_resource_of_type method call