@Override public final void writeEndArray() throws IOException { if (!_outputContext.inArray()) { _reportError("Current context not Array but "+_outputContext.typeDesc()); } if (_xmlPrettyPrinter != null) { _xmlPrettyPrinter.writeEndArray(this, _outputContext.getEntryCount()); } else { // nothing to do here; no-operation } _outputContext = _outputContext.getParent(); }