src/main/java/js/mvc/XspView.java
@Override
	protected void serialize(OutputStream outputStream) throws IOException {
		// refrain to use HttpResponse#getWriter()
		// this library always uses output stream since servlet response API does not allow mixing characters and bytes streams
		Writer writer = new BufferedWriter(new OutputStreamWriter(outputStream, "UTF-8"));

		TemplateEngine templateEngine = Classes.loadService(TemplateEngine.class);
		Template template = templateEngine.getTemplate(meta.getTemplateFile());
		boolean operatorSerialization = Boolean.parseBoolean(meta.getProperty(OPERATOR_SERIALIZATION));
		if (operatorSerialization) {
			template.setProperty("js.template.serialize.operator", true);
		}
		// if model is null template serializes itself skipping injection operation
		template.serialize(model, writer);

		// there is no need to flush response stream on error so no need for try/finally
		writer.flush();
	}
@Override
	protected void serialize(OutputStream outputStream) throws IOException {
		// refrain to use HttpResponse#getWriter()
		// this library always uses output stream since servlet response API does not allow mixing characters and bytes streams
		Writer writer = new BufferedWriter(new OutputStreamWriter(outputStream, "UTF-8"));

		TemplateEngine templateEngine = Classes.loadService(TemplateEngine.class);
		Template template = templateEngine.getTemplate(meta.getTemplateFile());
		boolean operatorSerialization = Boolean.parseBoolean(meta.getProperty(OPERATOR_SERIALIZATION));
		if (operatorSerialization) {
			template.setProperty("js.template.serialize.operator", true);
		}
		// if model is null template serializes itself skipping injection operation
		template.serialize(model, writer);

		// there is no need to flush response stream on error so no need for try/finally
		writer.flush();
	}
Uses template engine to inject model and serialize view on HTTP response. If meta-view contains
{@link #OPERATOR_SERIALIZATION} property enable engine operators serialization.

@param outputStream output stream of the HTTP response.
@throws IOException if stream write operation fails.