code: @Override
      public Wagon lookup(final String roleHint) throws Exception {
          if (roleHint.equals(HTTP)) {
              return setAuthenticator(new LightweightHttpWagon());
          } else if (roleHint.equals(HTTPS)) {
              return setAuthenticator(new LightweightHttpsWagon());
          } else if (roleHint.equals(FILE)) {
              return new FileWagon();
          }
  
          throw new RuntimeException("Role hint not supported: " + roleHint);
      }
docs: {@inheritDoc}
  
  @see org.eclipse.aether.connector.wagon.WagonProvider#lookup(java.lang.String)