void () { final String elementName = myElementNames.peek(); final boolean hasBody = myElementHasBody.peek(); myElementNames.pop(); myElementHasBody.pop(); if (hasBody) { writeSpaces(myElementNames.size()*INDENT); myBuffer.append("</").append(elementName).append(">\n"); } else { myBuffer.append("/>\n"); } }