class WineryRepositoryClient implements IWineryRepositoryClient {

    @Override
    public QName getArtifactTypeQNameForExtension(String extension) {
        // we try all repositories until the first hit
        for (WebTarget wr : this.repositoryResources) {
            Response response = wr.path("artifacttypes").queryParam("extension", extension)
                .request(MediaType.TEXT_PLAIN)
                .get();
            if (response.getStatusInfo().equals(Response.Status.OK)) {
                return QName.valueOf(response.readEntity(String.class));
            }
        }
        return null;
    }

    public  WineryRepositoryClient();
    public  WineryRepositoryClient(boolean useProxy);

}