code: public Reader createScript(Charset charset) {
  
  		// Determine wether this is run-app or run-war style of runtime.
  		boolean warDeployed = ((Boolean) this.servletContext
  				.getAttribute(JawrGrailsConstant.GRAILS_WAR_DEPLOYED))
  				.booleanValue();
  
  		// Spring message bundle object, the same used by grails.
  		GrailsBundleMessageSource messageSource = new GrailsBundleMessageSource(
  				warDeployed);
  		
  		messageSource.setFallbackToSystemLocale(control.isFallbackToSystemLocale());
  		messageSource.setFilters(filterList);
  
  		if (warDeployed) {
  			messageSource.setResourceLoader(new ServletContextResourceLoader(
  					this.servletContext));
  
  		}
  		messageSource.setBasenames(getBaseNames(warDeployed));
  
  		Properties props = messageSource.getAllMessages(locale);
  		return doCreateScript(props);
  	}
docs: /*
  (non-Javadoc)
  
  @see
  net.jawr.web.resource.bundle.locale.message.MessageBundleScriptCreator
  #createScript(java.nio.charset.Charset)