// future, this should go to some
// SSE system registry mechanism.
xmlModel.getFactoryRegistry().addFactory(
new PageVariableAdapterFactory());
provider = new DocumentPageVariableAdapter(doc);
doc.addAdapter(provider);
provider.refresh();
PageExpressionContext.getCurrent()
.pushPageVarProvider(provider);