code: public String getTagValue(String tagName) {
  
          Tag[] tags = getTagMap().get(tagName);
          if (tags == null || tags.length == 0) {
              return null;
          }
  
          return tags[tags.length - 1].getText();
      }
docs: Gets the text value of the first tag in doc that matches tagName