RemoteRepository (RemoteRepository prototype) { String url = prototype.getUrl(); return new RemoteRepository.Builder(prototype.getId(), prototype.getContentType(), url).setProxy(ourProxySelector.getProxy(url)).build(); }