// Then we must decide if it should be sized and written as an
// empty tag or as a start and end tag. This information is static
// so it's good to do this now rather than during sizing/output
try {
current.accept(emptyVisitor);
EmptyElementType type = emptyVisitor.getEmptyElementType();
if (logger.isDebugEnabled()) {
logger.debug("Marking empty tag '" + current.getName() +
"' as " + type);
}
current.setEmptyType(type);