Program: 15876
Project: 15876
Buggy source:
protected void handleComponentAttached(Component comp){
  boolean removeMark=Boolean.TRUE.equals(comp.getAttribute(REMOVE_MARK));
  if (removeMark) {
    comp.addEventListener(10000,ON_ZKBIND_LATER,new EventListener<Event>(){
      public void onEvent(      Event event) throws Exception {
        final Component comp=event.getTarget();
        comp.removeAttribute(REMOVE_MARK);
        comp.removeEventListener(ON_ZKBIND_LATER,this);
        handleComponentAttached(comp);
      }
    }
);
    Events.postEvent(new Event(ON_ZKBIND_LATER,comp));
    return;
  }
 else   if (!Boolean.FALSE.equals(comp.removeAttribute(SKIP_BIND_INIT))) {
    if (comp instanceof ComponentCtrl && !((ComponentCtrl)comp).hasSubBindingAnnotation() && !(comp instanceof ShadowElement))     return;
  }
  if (comp.getDesktop() != null || comp instanceof ShadowElement) {
    Binder selfBinder=BinderUtil.getBinder(comp);
    if (selfBinder == null) {
      Binder parentBinder=BinderUtil.getBinder(comp,true);
      if (parentBinder == null && comp instanceof ShadowElement) {
        Component shadowHost=((ShadowElement)comp).getShadowHost();
        if (shadowHost != null)         parentBinder=BinderUtil.getBinder(shadowHost,true);
      }
      if (parentBinder != null && (parentBinder instanceof BinderImpl)) {
        comp.addEventListener(10000,BinderImpl.ON_BIND_INIT,new EventListener<Event>(){
          public void onEvent(          Event event) throws Exception {
            final Component comp=event.getTarget();
            comp.removeEventListener(BinderImpl.ON_BIND_INIT,this);
            if (comp.getPage() == null && !(comp instanceof ShadowElement)) {
              return;
            }
            final Binder innerBinder=BinderUtil.getBinder(comp);
            if (innerBinder != null) {
              return;
            }
            Binder binder=null;
            String bid=(String)comp.getAttribute(BindComposer.BINDER_ID);
            if (bid != null) {
              binder=(Binder)comp.getAttribute(bid);
            }
 else {
              binder=BinderUtil.getBinder(comp,true);
            }
            if (binder == null) {
              if (comp instanceof ShadowElement) {
                Component shadowHost=((ShadowElement)comp).getShadowHost();
                if (shadowHost != null)                 binder=BinderUtil.getBinder(shadowHost,true);
              }
              if (binder == null)               return;
            }
            if (getExtension().isLifeCycleHandling(comp)) {
              return;
            }
            if (binder instanceof AnnotateBinder) {
              new AnnotateBinderHelper(binder).initComponentBindings(comp);
            }
            getExtension().markLifeCycleHandling(comp);
            binder.loadComponent(comp,true);
            if (comp.getAttribute(BinderImpl.VAR) != null)             BinderUtil.markHandling(comp,binder);
          }
        }
);
        Events.postEvent(new Event(BinderImpl.ON_BIND_INIT,comp));
      }
    }
  }
}

Fixed version (ground truth):
protected void handleComponentAttached(Component comp){
  boolean removeMark=Boolean.TRUE.equals(comp.getAttribute(REMOVE_MARK));
  if (removeMark) {
    comp.addEventListener(10000,ON_ZKBIND_LATER,new EventListener<Event>(){
      public void onEvent(      Event event) throws Exception {
        final Component comp=event.getTarget();
        comp.removeAttribute(REMOVE_MARK);
        comp.removeEventListener(ON_ZKBIND_LATER,this);
        handleComponentAttached(comp);
      }
    }
);
    Events.postEvent(new Event(ON_ZKBIND_LATER,comp));
    return;
  }
 else   if (!Boolean.FALSE.equals(comp.removeAttribute(SKIP_BIND_INIT))) {
    if (comp instanceof ComponentCtrl && !((ComponentCtrl)comp).hasSubBindingAnnotation() && !(comp instanceof ShadowElement))     return;
  }
  if (comp.getDesktop() != null || comp instanceof ShadowElement) {
    Binder selfBinder=BinderUtil.getBinder(comp);
    if (selfBinder == null) {
      Binder parentBinder=BinderUtil.getBinder(comp,true);
      if (parentBinder == null && comp instanceof ShadowElement) {
        Component shadowHost=((ShadowElement)comp).getShadowHost();
        if (shadowHost != null)         parentBinder=BinderUtil.getBinder(shadowHost,true);
      }
      if ((parentBinder != null && (parentBinder instanceof BinderImpl)) || comp.hasAttribute(BindComposer.BINDER_ID)) {
        comp.addEventListener(10000,BinderImpl.ON_BIND_INIT,new EventListener<Event>(){
          public void onEvent(          Event event) throws Exception {
            final Component comp=event.getTarget();
            comp.removeEventListener(BinderImpl.ON_BIND_INIT,this);
            if (comp.getPage() == null && !(comp instanceof ShadowElement)) {
              return;
            }
            final Binder innerBinder=BinderUtil.getBinder(comp);
            if (innerBinder != null) {
              return;
            }
            Binder binder=null;
            String bid=(String)comp.getAttribute(BindComposer.BINDER_ID);
            if (bid != null) {
              binder=(Binder)comp.getAttribute(bid);
            }
 else {
              binder=BinderUtil.getBinder(comp,true);
            }
            if (binder == null) {
              if (comp instanceof ShadowElement) {
                Component shadowHost=((ShadowElement)comp).getShadowHost();
                if (shadowHost != null)                 binder=BinderUtil.getBinder(shadowHost,true);
              }
              if (binder == null)               return;
            }
            if (getExtension().isLifeCycleHandling(comp)) {
              return;
            }
            if (binder instanceof AnnotateBinder) {
              new AnnotateBinderHelper(binder).initComponentBindings(comp);
            }
            getExtension().markLifeCycleHandling(comp);
            binder.loadComponent(comp,true);
            if (comp.getAttribute(BinderImpl.VAR) != null || bid != null)             BinderUtil.markHandling(comp,binder);
          }
        }
);
        Events.postEvent(new Event(BinderImpl.ON_BIND_INIT,comp));
      }
    }
  }
}