code: public static String generateJavascript(ModelBean model, OutputFormat format,
  			boolean debug) {
  		OutputConfig outputConfig = new OutputConfig();
  		outputConfig.setOutputFormat(format);
  		outputConfig.setDebug(debug);
  		return generateJavascript(model, outputConfig);
  	}
docs: Creates JS code based on the provided {@link ModelBean} in the specified
  {@link OutputFormat}. Code can be generated in pretty or compressed format. The
  generated code is cached unless debug is true. A second call to this method with
  the same model name and format will return the code from the cache.
  
  @param model generate code based on this {@link ModelBean}
  @param format specifies which code (ExtJS or Touch) the generator should create
  @param debug if true the generator creates the output in pretty format, false the
  output is compressed
  @return the generated model object (JS code)