added a composition factory for the variablecontextfactory stack