singletonElementHandler);
registry = new DefaultTagRegistry(handlers);
processor = new DefaultTemplateProcessor(expressions);
resolver = new RootELResolver();
parser = new SocialMarkupHtmlParser(new ParseModule.DOMImplementationProvider().get());
context = new TemplateContext(new Gadget(), variables);
variables.put("foo", new JSONObject("{ title: 'bar' }"));
variables.put("user", new JSONObject("{ id: '101', name: { first: 'John', last: 'Doe' }}"));
variables.put("toys", new JSONObject("{ list: [{name: 'Ball'}, {name: 'Car'}]}"));