class RemoteServiceDescriptor {

  public List<Link> getLinks() throws ServerException, IOException {
    final List<Link> links = getServiceDescriptor().getLinks();
    // always copy list and links itself!
    final List<Link> copy = new ArrayList<>(links.size());
    for (Link link : links) {
      copy.add(DtoFactory.getInstance().clone(link));
    }
    return copy;
  }

  public  RemoteServiceDescriptor(String baseUrl, HttpJsonRequestFactory requestFactory);

}