code: private static ConditionWithApplicables methodWithUriAndAutoDiscovery(final Method m, String uri) {
          try {
              final URL resource = new SmartDiscoverer("restito").discoverResource(m, uri);
              return new ConditionWithApplicables(composite(method(m), uri(uri)), resourceContent(resource));
          } catch (IllegalArgumentException e) {
              logger.debug("Can not auto-discover resource for URI [{}]", uri);
          }
  
          return new ConditionWithApplicables(composite(method(m), uri(uri)), Action.noop());
      }
docs: Checks HTTP method, URI and enables AutoDiscovery