protected void handleActionsInternal() {
   String ident = "";
   String forelementcounter = "0";
   int fallbackcounter = 0;
   boolean inForLoop = false;
   int forLoopCounter = 0;
   PrintWriter out = ThreadLocalOut.peek();
   ident = "";
   if (inForLoop) {
     ident += forelementcounter;
   }
   ident += "tcall499";
   ThreadLocalPage.get().enterTemplateContext("tcall499");
   try {
     Object[] args1193 = {"Name: "};
     utils.LocalTemplateArguments args21192 =
         env.getExtraLocalTemplateArguments("labelcolumnsString");
     if (args21192 != null) {
       args1193 = ArrayUtils.addAll(args1193, args21192.extraArgs);
     }
     if (templatecalls.get(ident) == null) {
       templatecalls.put(
           ident, (TemplateServlet) env.getTemplate("labelcolumnsString").newInstance());
     }
     org.webdsl.lang.Environment newenv = new Environment(env);
     newenv.putWithcall(
         "elements#labelcolumnsString",
         new utils.TemplateCall(
             "customerCustomer_ta0Customer_ta0Customer",
             getElementsContext(),
             new Object[] {arg0},
             attrs));
     Map<String, String> attrsmapout = TemplateCall.EmptyAttrs;
     ((TemplateServlet) templatecalls.get(ident))
         .handleActions("labelcolumnsString", args1193, newenv, attrsmapout, args21192);
     if (ThreadLocalPage.get().hasExecutedAction) return;
   } catch (Exception ex) {
     System.out.println("Problem occurred in template call: " + "labelcolumnsString(Name: )");
     utils.Warning.printSmallStackTrace(ex);
   }
   ident = "";
   ThreadLocalPage.get().leaveTemplateContext();
   ThreadLocalTemplate.set(this);
 }
  private void tryInitializeTemplate(
      String calledName,
      Object[] args,
      Environment env,
      Map<String, String> attrs,
      utils.LocalTemplateArguments ltas) {
    // always set ThreadLocalTemplate
    ThreadLocalTemplate.set(this);
    // always store arguments, value might change between phases
    storeArguments(args);
    if (!initialized || ThreadLocalPage.get().hibernateCacheCleared) {
      // System.out.println("template init "+"~x_Page"+"init: "+initialized+ " hibcache:
      // "+ThreadLocalPage.get().hibernateCacheCleared);
      initialized = true;

      this.calledName = calledName;
      this.env = env;
      putLocalDefinesInEnv();
      this.request = ThreadLocalPage.get().getRequest();
      this.response = ThreadLocalPage.get().getResponse();
      if (request != null) { // calling rendertemplate within background task
        this.session = request.getSession(true);
      }
      this.hibSession = ThreadLocalPage.get().getHibSession();
      this.attrs = attrs;
      this.ltas = ltas;
      try {
        this.uniqueid =
            Encoders.encodeTemplateId(
                getTemplateClassName() /*, getStateEncodingOfArgument()*/, getTemplateContext());
        initialize();
        initializeLocalVars();
        initSubmitActions();
        initActions();
      } catch (utils.ValidationException ve) {
        ThreadLocalPage.get()
            .getValidationExceptions()
            .add(ve.setName(ThreadLocalPage.get().getValidationContext()));
        ThreadLocalPage.get().setValidated(false);
        utils.Warning.warn(
            "Validation failed in initialization of "
                + getTemplateSignature()
                + ": "
                + ve.getErrorMessage());
        skipThisTemplate = true;
      } catch (utils.MultipleValidationExceptions ve) {
        for (utils.ValidationException vex : ve.getValidationExceptions()) {
          ThreadLocalPage.get()
              .getValidationExceptions()
              .add(vex.setName(ThreadLocalPage.get().getValidationContext()));
          utils.Warning.warn(
              "Validation failed in initialization of "
                  + getTemplateSignature()
                  + ": "
                  + vex.getErrorMessage());
        }
        ThreadLocalPage.get().setValidated(false);
        skipThisTemplate = true;
      }
    }
  }
 public static TemplateServlet getCurrentTemplate() {
   return ThreadLocalTemplate.get();
 }
 public String getLabelString() {
   return getLabelStringForTemplateContext(ThreadLocalTemplate.get().getUniqueId());
 }
 public static void cleanupThreadLocals() {
   ThreadLocalAction.set(null);
   ThreadLocalEmailContext.set(null);
   ThreadLocalPage.set(null);
   ThreadLocalTemplate.setNull();
 }