public void end(InterpretationContext ec, String e) {
   if (inError) {
     return;
   }
   if (statusListener instanceof LifeCycle) {
     ((LifeCycle) statusListener).start();
   }
   Object o = ec.peekObject();
   if (o != statusListener) {
     addWarn("The object at the of the stack is not the statusListener pushed earlier.");
   } else {
     ec.popObject();
   }
 }
  @Override
  public void end(InterpretationContext ec, String name) throws ActionException {
    if (inError) {
      return;
    }
    Object o = ec.peekObject();

    if (o != lcl) {
      addWarn(
          "The object on the top the of the stack is not the LoggerContextListener pushed earlier.");
    } else {
      if (lcl instanceof LifeCycle) {
        ((LifeCycle) lcl).start();
        addInfo("Starting LoggerContextListener");
      }
      ((LoggerContext) context).addListener(lcl);
      ec.popObject();
    }
  }