public OMElement getOMElement(
final javax.xml.namespace.QName parentQName,
final OMFactory factory) throws ADBException {
OMDataSource dataSource = new ADBDataSource(this, parentQName) {
public void serialize(MTOMAwareXMLStreamWriter xmlWriter) throws XMLStreamException {
Array.this.serialize(parentQName, factory, xmlWriter);
}
};
return new OMSourcedElementImpl(parentQName, factory, dataSource);