}
public void render(Object parameters, Object out) throws IOException, ParseException {
Map<String, Object> map = convertMap(parameters);
out = convertOut(out);
Context context = Context.pushContext(map);
try {
context.setTemplate(this);
if (out instanceof OutputStream) {
context.setOut((OutputStream) out);
} else if (out instanceof Writer) {
context.setOut((Writer) out);
} else {
throw new IllegalArgumentException("No such Converter to convert the " + out.getClass().getName() + " to OutputStream or Writer.");
}
if (interceptor != null) {
interceptor.render(context, new Listener() {