/** * Tries to read the element at the current position of the reader. * * @param reader the reader * @return True if the element was read, false otherwise. * @throws Exception the exception */ @Override public boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception { boolean result = super.tryReadElementFromXml(reader); if (!result) { this.item = EwsUtilities.createItemFromXmlElementName(this, reader.getLocalName()); if (this.item != null) { try { this.item.loadFromXml(reader, true /* clearPropertyBag */); } catch (Exception e) { LOG.error(e); } } } return result; }
/** * Tries to read the element at the current position of the reader. * * @param reader the reader * @return True if the element was read, false otherwise. * @throws Exception the exception */ @Override public boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception { boolean result = super.tryReadElementFromXml(reader); if (!result) { this.item = EwsUtilities.createItemFromXmlElementName(this, reader.getLocalName()); if (this.item != null) { try { this.item.loadFromXml(reader, true /* clearPropertyBag */); } catch (Exception e) { LOG.error(e); } } } return result; }