code: public Term removeTerm(String name) {
          Iterator<Term> it = this.terms.iterator();
          while (it.hasNext()) {
              Term term = it.next();
              if (term.getName().equals(name)) {
                  it.remove();
                  return term;
              }
          }
          return null;
      }
docs: Removes the term
  
  @param name is the name of the term to remove
  @return the removed term or null if not found