class LinkUtils {

  public static Object best(Link<?> link) {
    ArgumentChecker.notNull(link, "link");
    ObjectId objectId = link.getObjectId();
    ExternalIdBundle bundle = link.getExternalId();
    return Objects.firstNonNull(objectId, bundle);
  }

  protected  LinkUtils();

}