@Override
DOMActionResult processReply(final Object reply) {
- if (reply instanceof ActionResponse) {
- final ActionResponse actionReply = (ActionResponse) reply;
+ if (reply instanceof ActionResponse actionReply) {
final ContainerNode output = actionReply.getOutput();
return output == null ? new SimpleDOMActionResult(actionReply.getErrors())
: new SimpleDOMActionResult(output, actionReply.getErrors());