- ExiParameters exiParams = new ExiParameters();\r
- exiParams.setParametersFromXmlElement(operationElement);\r
-\r
- netconfSession.addExiDecoder(ExiDecoderHandler.HANDLER_NAME, new ExiDecoderHandler(exiParams));\r
- netconfSession.addExiEncoderAfterMessageSent(ExiEncoderHandler.HANDLER_NAME,new ExiEncoderHandler(exiParams));\r
-\r
- } catch (EXIException e) {\r
- getSchemaResult = document\r
- .createElement(XmlNetconfConstants.RPC_ERROR);\r
+ netconfSession.startExiCommunication(new NetconfMessage(message));\r
+ } catch (IllegalArgumentException e) {\r
+ throw new NetconfDocumentedException("Failed to parse EXI parameters", ErrorType.protocol,\r
+ ErrorTag.operation_failed, ErrorSeverity.error);\r