code: @Override
  	public int doEndTag() throws JspException {
  
  		try {
  			String imgSrc = getImgSrcToRender();
  
  			if (null == var) {
  				try {
  					pageContext.getOut().print(imgSrc);
  				} catch (IOException e) {
  					throw new JspException(e);
  				}
  			} else {
  				pageContext.setAttribute(var, imgSrc);
  			}
  
  			return super.doEndTag();
  
  		} finally {
  
  			// Reset the Thread local for the Jawr context
  			ThreadLocalJawrContext.reset();
  		}
  	}
docs: /*
  (non-Javadoc)
  
  @see javax.servlet.jsp.tagext.TagSupport#doStartTag()