+ @Override
+ public void processResponse(final Object readResponse,
+ final SettableFuture<Optional<NormalizedNode>> returnFuture) {
+ if (ReadDataReply.isSerializedType(readResponse)) {
+ ReadDataReply reply = ReadDataReply.fromSerializable(readResponse);
+ returnFuture.set(Optional.ofNullable(reply.getNormalizedNode()));
+ } else {
+ returnFuture.setException(new ReadFailedException("Invalid response reading data for path " + getPath()));
+ }
+ }