docs: private Action handleAddUpdateActionStatus(final JpaActionStatus actionStatus, final JpaAction action) {
  
          String controllerId = null;
          LOG.debug("handleAddUpdateActionStatus for action {}", action.getId());
  
          // information status entry - check for a potential DOS attack
          assertActionStatusQuota(action);
          assertActionStatusMessageQuota(actionStatus);
  
          switch (actionStatus.getStatus()) {
          case ERROR:
              final JpaTarget target = (JpaTarget) action.getTarget();
              target.setUpdateStatus(TargetUpdateStatus.ERROR);
              handleErrorOnAction(action, target);
              break;
          case FINISHED:
              controllerId = handleFinishedAndStoreInTargetStatus(action);
              break;
          case DOWNLOADED:
              controllerId = handleDownloadedActionStatus(action);
              break;
          default:
              break;
          }
  
          actionStatus.setAction(action);
          actionStatusRepository.save(actionStatus);
          final Action savedAction = actionRepository.save(action);
  
          if (controllerId != null) {
              requestControllerAttributes(controllerId);
          }
  
          return savedAction;
      }