108109110111112113114115116117118
if (currentBlock != null && !currentBlock.isClosed()) { currentBlock.setClosed(true); } if (asDocument) { builder.endDocument(); } } finally { builder.setLocator(null); } }