public Class<? extends RESTResponse> responseClass() {
      return responseClass;
    }
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