- KnockKnockImpl registerTo(final RpcProviderService registry, final InstanceIdentifier<?>... paths) {
- registration = registry.registerRpcImplementation(this, ImmutableSet.copyOf(paths));
+ KnockKnockImpl registerTo(final RpcProviderService registry, final DataObjectReference<?>... paths) {
+ registration = registry.registerRpcImplementation(this, Arrays.stream(paths)
+ .map(DataObjectReference::toLegacy)
+ .collect(ImmutableSet.toImmutableSet()));