code: public static void writeModel(HttpServletRequest request,
  			HttpServletResponse response, ModelBean model, OutputFormat format,
  			boolean debug) throws IOException {
  		OutputConfig outputConfig = new OutputConfig();
  		outputConfig.setDebug(debug);
  		outputConfig.setOutputFormat(format);
  		writeModel(request, response, model, outputConfig);
  	}
docs: Creates a model object (JS code) based on the provided ModelBean and writes it into
  the response.
  
  @param request the http servlet request
  @param response the http servlet response
  @param model {@link ModelBean} describing the model to be generated
  @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
  @throws IOException