docs: @Override
  	protected void doTag(BufferResult capturedBody, Writer out) throws JspTagException, IOException {
  		if(src==null) {
  			// Use default auto encoding
  			MarkupUtils.writeWithMarkup(capturedBody, mediaType.getMarkupType(), out);
  		} else {
  			// Write script tag with src attribute, discarding any body
  			out.write("<script type=\"");
  			encodeTextInXhtmlAttribute(mediaType.getContentType(), out);
  			out.write('"');
  			UrlUtils.writeSrc(getJspContext(), out, src, params, srcAbsolute, addLastModified);
  			out.write("></script>");
  		}
  	}