code: public void writeHtmlString(String strHTML, PrintWriter out)
      {
          int iIndex;
          if (strHTML == null)
              return;
          while ((iIndex = strHTML.indexOf(HtmlConstants.TITLE_TAG)) != -1)
          {   // ** FIX THIS to look for a <xxx/> and look up the token **
              strHTML = strHTML.substring(0, iIndex) + ((BasePanel)this.getScreenField()).getTitle() + strHTML.substring(iIndex + HtmlConstants.TITLE_TAG.length());
          }
          out.println(strHTML);
      }
docs: Parse the HTML for variables and print it.
  @param strHTML the html string to output.
  @param out The html out stream.