Drupal 7.x module to discover an entity based on its path (or other information)