/**
  * Search for the next COMPREHENSION-TLV object with the given tag from a list iterated by {@code
  * iter}. {@code iter} points to the object next to the found object when this method returns.
  * Used for searching the same list for similar tags, usually item id.
  *
  * @param tag A tag to search for
  * @param iter Iterator for ComprehensionTlv objects used for search
  * @return A ComprehensionTlv object that has the tag value of {@code tag}. If no object is found
  *     with the tag, null is returned.
  */
 private ComprehensionTlv searchForNextTag(
     ComprehensionTlvTag tag, Iterator<ComprehensionTlv> iter) {
   int tagValue = tag.value();
   while (iter.hasNext()) {
     ComprehensionTlv ctlv = iter.next();
     if (ctlv.getTag() == tagValue) {
       return ctlv;
     }
   }
   return null;
 }