- if (rpcDef != null) {
- final ContainerSchemaNode input = rpcDef.getInput();
- if (input != null) {
- for (DataSchemaNode c : input.getChildNodes()) {
- for (UnknownSchemaNode extension : c.getUnknownSchemaNodes()) {
- if (CONTEXT_REFERENCE.equals(extension.getNodeType())) {
- final YangInstanceIdentifier keyId = YangInstanceIdentifier.of(c.getQName());
- return new RoutedDOMRpcRoutingTableEntry(rpcDef, keyId, implementations);
- }
+ if (rpcDef == null) {
+ return new UnknownDOMRpcRoutingTableEntry(key, implementations);
+ }
+
+ final ContainerSchemaNode input = rpcDef.getInput();
+ if (input != null) {
+ for (DataSchemaNode c : input.getChildNodes()) {
+ for (UnknownSchemaNode extension : c.getUnknownSchemaNodes()) {
+ if (CONTEXT_REFERENCE.equals(extension.getNodeType())) {
+ final YangInstanceIdentifier keyId = YangInstanceIdentifier.of(c.getQName());
+ return new RoutedDOMRpcRoutingTableEntry(rpcDef, keyId, implementations);