import org.opendaylight.controller.netconf.util.mapping.AbstractSingletonNetconfOperation;
import org.opendaylight.controller.netconf.util.xml.XmlElement;
import org.opendaylight.controller.netconf.util.xml.XmlNetconfConstants;
+import org.opendaylight.controller.netconf.util.xml.XmlUtil;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
+import com.google.common.base.Optional;
+
import java.util.Collections;
public class DefaultCloseSession extends AbstractSingletonNetconfOperation {
NetconfDocumentedException.ErrorSeverity.error, Collections.singletonMap(
NetconfDocumentedException.ErrorSeverity.error.toString(), e.getMessage()));
}
- return document.createElement(XmlNetconfConstants.OK);
+ return XmlUtil.createElement(document, XmlNetconfConstants.OK, Optional.<String>absent());
}
}