System.out.println(template.expand(map));
}
// Using a HashMap based context
private static void exampleWithHashMapContext() {
HashMapContext context = new HashMapContext();
context.put("user","james");
context.put("categories", new String[] {"a","b","c"});
context.put("foo", "abc");
context.put("bar", "xyz");
System.out.println(template.expand(context));
}