code: private String createScript(String skinCookieName) {
  		StringWriter sw = new StringWriter();
  		try (InputStream is = ClassLoaderResourceUtils.getResourceAsStream(SCRIPT_TEMPLATE, this)) {
  			IOUtils.copy(is, sw);
  		} catch (IOException e) {
  			Marker fatal = MarkerFactory.getMarker("FATAL");
  			LOGGER.error(fatal, "a serious error occurred when initializing ThemeSwitcherJsGenerator");
  			throw new BundlingProcessException(
  					"Classloading issues prevent loading the themeSwitcher template to be loaded. ", e);
  		}
  
  		return sw.getBuffer().toString().replaceAll("\\{JAWR_SKIN_COOKIE_NAME\\}", skinCookieName);
  	}
docs: Loads a template containing the functions which convert properties into
  methods.
  
  @return