public static <T> T newClient(URI uri, Class<T> clientType) {
        return builder(uri).build(clientType);
    }
Creates a new Thrift client that connects to the specified {@link URI} using the default
{@link ClientFactory}.

<p>Note that if a {@link SerializationFormat} is not specified in the {@link Scheme} component of
the {@code uri}, {@link ThriftSerializationFormats#BINARY} will be used by default.

@param uri the {@link URI} of the server endpoint
@param clientType the type of the new Thrift client

@throws IllegalArgumentException if the specified {@code uri} is invalid, or the specified
                                 {@code clientType} is an unsupported Thrift client stub.
thrift/thrift0.13/src/main/java/com/linecorp/armeria/client/thrift/ThriftClients.java