public void apply(FacesContext context, AspectInvocation invocation) throws IOException { setInvocation(invocation); try { this.proceedCalled = false; super.encodeChildren(context); if (!proceedCalled) { invocation.proceed(); } } finally { clearInvocation(); } }