private TemplateNode renderMain(
      Appendable outputBuf,
      String templateName,
      @Nullable SoyRecord data,
      @Nullable SoyRecord ijData,
      @Nullable Predicate<String> activeDelPackageNames,
      @Nullable SoyMsgBundle msgBundle,
      @Nullable SoyIdRenamingMap idRenamingMap,
      @Nullable SoyCssRenamingMap cssRenamingMap,
      boolean debugSoyTemplateInfo,
      ImmutableMap<String, Supplier<Object>> pluginInstances) {

    if (activeDelPackageNames == null) {
      activeDelPackageNames = arg -> false;
    }

    try (SoyScopedData.InScope inScope = apiCallScope.enter(msgBundle)) {
      // Do the rendering.
      return renderMainHelper(
          outputBuf,
          templateName,
          data,
          ijData,
          activeDelPackageNames,
          msgBundle,
          idRenamingMap,
          cssRenamingMap,
          debugSoyTemplateInfo,
          pluginInstances);
    }
  }
private TemplateNode renderMain ( Appendable outputBuf , String templateName , @ Nullable SoyRecord data , @ Nullable SoyRecord ijData , @ Nullable Predicate < String > activeDelPackageNames , @ Nullable SoyMsgBundle msgBundle , @ Nullable SoyIdRenamingMap idRenamingMap , @ Nullable SoyCssRenamingMap cssRenamingMap , boolean debugSoyTemplateInfo , ImmutableMap < String , Supplier < Object > > pluginInstances ) { if ( activeDelPackageNames == null ) { activeDelPackageNames = arg -> false ; } try ( SoyScopedData . InScope inScope = apiCallScope . enter ( msgBundle ) ) { return renderMainHelper ( outputBuf , templateName , data , ijData , activeDelPackageNames , msgBundle , idRenamingMap , cssRenamingMap , debugSoyTemplateInfo , pluginInstances ) ; } }
@param outputBuf The Appendable to write the output to.
@param templateName The full name of the template to render.
@param data The data to call the template with. Can be null if the template has no parameters.
@param ijData The injected data to call the template with. Can be null if not used.
@param activeDelPackageNames The set of active delegate package names, or null if none.
@param msgBundle The bundle of translated messages, or null to use the messages from the Soy
source.
@param cssRenamingMap Map for renaming selectors in 'css' tags, or null if not used.
@param pluginInstances The instances used for evaluating functions that call instance methods.
@return The template that was rendered.