code: public String render(String template, Map<String, Object> model) {
  		try {
  			Invocable invocable = (Invocable) engine;
  			return (String) invocable.invokeFunction("render", template, model, partials);
  		}
  		catch (ScriptException ex) {
  			throw new NashornException(ex);
  		}
  		catch (NoSuchMethodException ex) {
  			throw new NashornException(ex);
  		}
  	}
docs: Render template with given model object.
  
  @param template Template.
  @param model Model object.
  @return Rendered template.