void (final @Nullable String nodeId, final @NotNull String localizedMessage, final @Nullable String stackTrace, final boolean isCritical) { LOG.debug("onError " + localizedMessage); SMTestProxy activeProxy = null; if (nodeId != null) { activeProxy = findProxyById(nodeId); } if (activeProxy == null) { Node activeNode = findActiveNode(); activeProxy = activeNode.getProxy(); } activeProxy.addError(localizedMessage, stackTrace, isCritical); }