public Document getXmlDataAsJDOMDocument() { if (xmlData == null) { return null; } if (xmlDataAsJDOMDocument == null) { xmlDataAsJDOMDocument = xmlData.getDocument(); } return (Document) xmlDataAsJDOMDocument.clone(); }
public void setXmlData(Document value) { if (value == null) { this.xmlData = null; } else { this.xmlData = LazyInitializedJDOMDocument.parse(value); } // Invalidate cache xmlDataAsJDOMDocument = null; portletData = null; datasources = null; }