Derive RpcRoutingStrategy from RpcEffectiveStatement
[mdsal.git] / binding / mdsal-binding-dom-adapter / src / main / java / org / opendaylight / mdsal / binding / dom / adapter / RpcServiceAdapter.java
index 5c2ab06080262c85404f1ff2039363bafa456f63..f0023fa1856419e467d5e0fef08d857cabe2a157 100644 (file)
@@ -69,7 +69,7 @@ class RpcServiceAdapter implements InvocationHandler {
 
     private RpcInvocationStrategy createStrategy(final Method method, final RpcDefinition schema) {
         final QName rpcType = schema.getQName();
-        final RpcRoutingStrategy strategy = RpcRoutingStrategy.from(schema);
+        final RpcRoutingStrategy strategy = RpcRoutingStrategy.from(schema.asEffectiveStatement());
         return strategy.isContextBasedRouted() ? new RoutedStrategy(rpcType, method, strategy.getLeaf())
                 : new NonRoutedStrategy(rpcType);
     }