code: public void setThumbnail(final Link newthumbnail) {
          Link old = null;
          for (final Link l : getOtherLinks()) {
              if ("thumbnail".equals(l.getRel())) {
                  old = l;
                  break;
              }
          }
          if (old != null) {
              getOtherLinks().remove(old);
              newthumbnail.setRel("thumbnail");
          }
          getOtherLinks().add(newthumbnail);
      }
docs: Set the value of thumbnail
  
  @param newthumbnail new value of thumbnail