static Route byName(String name) {
      try {
        return valueOf(name.toUpperCase());
      } catch (IllegalArgumentException xill) {
        return null;
      }
    }
An exception safe way of getting a route by name.

@param name the route name
@return the route instance or null if it could not be found
standalone-metastore/metastore-rest-catalog/src/main/java/org/apache/iceberg/rest/HMSCatalogAdapter.java