code: private Driver createDriver( String virtualUri, String user, String password, ServerAddress... addresses )
      {
          Config config = Config.builder()
                  .withResolver( address -> new HashSet<>( Arrays.asList( addresses ) ) )
                  .build();
  
          return GraphDatabase.driver( virtualUri, AuthTokens.basic( user, password ), config );
      }
docs: tag::config-custom-resolver[]