TestMixedModelBean bean = new TestMixedModelBean();
context = JXPathContext.newContext(bean);
context.setFactory(new TestMixedModelFactory());
context.setLocale(Locale.US);
Variables vars = context.getVariables();
vars.declareVariable("string", bean.getString());
vars.declareVariable("bean", bean.getBean());
vars.declareVariable("map", bean.getMap());
vars.declareVariable("list", bean.getList());
vars.declareVariable("document", bean.getDocument());
vars.declareVariable("element", bean.getElement());