protected String generateViewSource(GrailsWebRequest webRequest, GrailsDomainClass domainClass) {
   StringWriter sw = new StringWriter();
   templateGenerator.generateView(domainClass, webRequest.getActionName(), sw);
   return sw.toString();
 }
 protected String generateViewSource(String viewName, GrailsDomainClass domainClass)
     throws IOException {
   Writer sw = new FastStringWriter();
   templateGenerator.generateView(domainClass, viewName, sw);
   return sw.toString();
 }