@Override
    public void pushCompositeComponentClient(final TemplateClient client)
    {
        TemplateContext itc = new TemplateContextImpl();
        itc.setCompositeComponentClient(
                new CompositeComponentTemplateManager(this._facelet, client, getPageContext()));
        _isolatedTemplateContext.add(itc);
        _currentTemplateContext++;
        _defaultVarMapper.setTemplateContext(itc);
    }
@ Override public void pushCompositeComponentClient ( final TemplateClient client ) { TemplateContext itc = new TemplateContextImpl ( ) ; itc . setCompositeComponentClient ( new CompositeComponentTemplateManager ( this . _facelet , client , getPageContext ( ) ) ) ; _isolatedTemplateContext . add ( itc ) ; _currentTemplateContext ++ ; _defaultVarMapper . setTemplateContext ( itc ) ; }
/*
@Override
public TemplateManager popCompositeComponentClient(boolean cleanClientStack)
{
if (!this._compositeComponentClients.isEmpty())
{
if (cleanClientStack)
{
_clientsStack.get(_currentClientStack).clear();
}
_currentClientStack--;
return this._compositeComponentClients.remove(0);
}
if (_currentTemplateContext > 0)
{
TemplateManager tm = _isolatedTemplateContext.get(_currentTemplateContext).getCompositeComponentClient();
if (cleanClientStack)
{
_isolatedTemplateContext.get(_currentTemplateContext).clear();
}
_currentTemplateContext--;
return tm;
}
return null;
}


@Override
public void pushCompositeComponentClient(final TemplateClient client)
{
this._compositeComponentClients.add(0, new CompositeComponentTemplateManager(this._facelet, client));
if (_currentClientStack + 1 <= _clientsStack.size())
{
_clientsStack.add(new LinkedList<TemplateManager>());
}
_currentClientStack++;
if (_currentTemplateContext + 1 <= _isolatedTemplateContext.size())
{
_isolatedTemplateContext.add(new IsolatedTemplateContextImpl());
}
_currentTemplateContext++;
_isolatedTemplateContext.get(_currentTemplateContext).setCompositeComponentClient(
new CompositeComponentTemplateManager(this._facelet, client));
}

@Override
public void pushCompositeComponentClient(final TemplateManager client)
{
this._compositeComponentClients.add(0, client);
if (_currentClientStack + 1 < _clientsStack.size())
{
_clientsStack.add(new LinkedList<TemplateManager>());
}
_currentClientStack++;
if (_currentTemplateContext + 1 < _isolatedTemplateContext.size())
{
_isolatedTemplateContext.add(new IsolatedTemplateContextImpl());
}
_currentTemplateContext++;
_isolatedTemplateContext.get(_currentTemplateContext).setCompositeComponentClient(client);
}