private static void writeEscapedXml(char[] buffer, int length, JspWriter w) throws IOException {
		int start = 0;
		for (int i = 0; i < length; ++i) {
			char c = buffer[i];
			if (c <= '>') {
				char[] escaped = specialCharactersRepresentation[c];
				if (escaped == null) continue;
				if (start < i) {
					w.write(buffer, start, i - start);
				}
				w.write(escaped);
				start = i + 1;
			}

		}
		if (start < length) w.write(buffer, start, length - start);
	}