Output output = new OutputImpl();
Outlet outlet = new Outlet(RESULT_DIR);
output.addOutlet(outlet);
ResourceLoaderFactory.setCurrentThreadResourceLoader(new ResourceLoaderImpl(getClass().getClassLoader()));
xpandCtx = new XpandExecutionContextImpl(output, null);
Map<String, Variable> variables = xpandCtx.getGlobalVariables();
Variable srcDir = new Variable("srcDir", SRC_DIR);
variables.put("srcDir", srcDir);
Variable dir = new Variable("dir", RESULT_DIR);