code: public String mapLegacyTagId(IScriptReporter scriptReporter, String tagId, String value)
      {
          if (scriptReporter != null) {
              scriptReporter.addLegacyTagIdMappings(tagId, value);
              return null;
          }
  
          // without a scripRepoter we need to create the actual JavaScript that will be written out
          InternalStringBuilder sb = new InternalStringBuilder(64);
          StringBuilderRenderAppender writer = new StringBuilderRenderAppender(sb);
          getTagIdMapping(tagId, value, writer);
          return sb.toString();
      }
docs: This method will add a tagId and value to the ScriptRepoter TagId map.
  The a ScriptContainer tag will create a JavaScript table that allows
  the container, such as a portal, to rewrite the id so it's unique.
  The real name may be looked up based  upon the tagId.
  
  If the no ScriptReporter is found, a script string will be returned
  to the caller so they can output the script block.
  @param tagId
  @param value
  @return String