code: public static StringBuffer appendClosingTag(StringBuffer buffer, String tag)
  	{
  		StringBuffer _buffer = initStringBufferIfNecessary(buffer);
  		return doAppendClosingTag(_buffer, tag);
  	}
docs: Add a closing tag to a StringBuffer.
  
  If the buffer is null, a new one is created.
  
  @param buffer
  StringBuffer to fill
  @param tag
  the tag to close
  @return the buffer