- Object response(final Absolute type, final DOMActionResult result) {
- final Collection<? extends RpcError> errors = result.getErrors();
- return errors.isEmpty() ? new ActionResponse(result.getOutput(), result.getErrors())
+ Object response(final Absolute type, final DOMRpcResult result) {
+ final var errors = result.errors();
+ return errors.isEmpty() ? new ActionResponse(result.value(), errors)