code: public Reader generateResource(String path, GeneratorContext context) {
  	
  		Locale locale = null == context.getLocale() ? Locale.getDefault()
  				: context.getLocale();
  		String validators = context.getPath();
  		String validatorParams = context.getParenthesesParam();
  
  		String messagesNS = MessageBundleScriptCreator.DEFAULT_NAMESPACE;
  		boolean stopOnErrors = true;
  
  		StringTokenizer valparams = new StringTokenizer(validatorParams, "|");
  		String validatorMappingKey = valparams.nextToken();
  		if (valparams.hasMoreTokens())
  			messagesNS = valparams.nextToken();
  		if (valparams.hasMoreTokens())
  			stopOnErrors = Boolean.valueOf(valparams.nextToken())
  					.booleanValue();
  
  		// Build the ValidatorResources if it doesn't exist yet
  		if (!validatorResourcesMap.containsKey(validatorMappingKey)) {
  			createValidatorResources(validatorMappingKey, context.getConfig());
  		}
  
  		ValidatorResources validatorResources = (ValidatorResources) validatorResourcesMap
  				.get(validatorMappingKey);
  		StringBuffer sb = new StringBuffer();
  		StringTokenizer tk = new StringTokenizer(validators, "|");
  		while (tk.hasMoreTokens()) {
  			String validator = tk.nextToken();
  			if (STATIC_JAVASCRIPT_KEY.equals(validator)) {
  				sb.append(buildStaticJavascript(validatorResources));
  			} else
  				sb.append(buildFormJavascript(validatorResources, validator,
  						locale, messagesNS, stopOnErrors));
  
  		}
  
  		return new StringReader(sb.toString());
  	}
docs: /* (non-Javadoc)
  @see net.jawr.web.resource.bundle.generator.AbstractCachedGenerator#generateResource(net.jawr.web.resource.bundle.generator.GeneratorContext, java.lang.String)