public static <T> T newClient(SessionProtocol protocol, EndpointGroup endpointGroup, String path,
                                  Class<T> clientType) {
        return builder(protocol, endpointGroup).path(path).build(clientType);
    }
Creates a new client that connects to the specified {@link EndpointGroup} with
the specified {@link SessionProtocol}, {@code path} and {@link ThriftSerializationFormats#BINARY}
using the default {@link ClientFactory}.

@param protocol the {@link SessionProtocol}
@param endpointGroup the server {@link EndpointGroup}
@param path the path to the endpoint
@param clientType the type of the new client

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