@Override
    public NameResolver newNameResolver(final URI targetUri, final Args args) {
        if (SELF_SCHEME.equals(targetUri.getScheme())) {
            return new SelfNameResolver(this.properties, args);
        }
        return null;
    }
Creates a new SelfNameResolverFactory that uses the given properties.

@param properties The properties used to resolve this server's address.
grpc-server-spring-boot-starter/src/main/java/net/devh/boot/grpc/server/nameresolver/SelfNameResolverFactory.java