code: public void register(final Link curi) {
          if (!curi.getRel().equals("curies")) {
              throw new IllegalArgumentException("Link must be a CURI");
          }
  
          final boolean alreadyRegistered = curies
                  .stream()
                  .anyMatch(link -> link.getHref().equals(curi.getHref()));
          if (alreadyRegistered) {
              curies.removeIf(link -> link.getName().equals(curi.getName()));
              curies.replaceAll(link -> link.getName().equals(curi.getName()) ? curi : link);
          }
          curies.add(curi);
      }
docs: Registers a CURI link in the Curies instance.
  
  @param curi the CURI
  @throws IllegalArgumentException if the link-relation type of the link is not equal to 'curies'