}
private ModelAndView renderMarkdown(final String documentName) throws IOException {
ModelAndView mav = new ModelAndView("/developer/public/partials/user-manual");
String release = env.get("release");
Markdown4jProcessor processor = new Markdown4jProcessor();
final String userManualsLocation = env.get("userManuals.location");
String documentLocation = context.getRealPath("/doc/") + "/" + documentName + ".md";
if (userManualsLocation!=null)
documentLocation = userManualsLocation + documentName + ".md";
String manual = processor.process(new File(documentLocation));
manual = manual.replaceAll("\\$\\{homeBaseUrl\\}", env.get("homeBaseUrl"));
mav.addObject("manual", manual);
mav.addObject("release", release);
return mav;
}