@SuppressWarnings("squid:MethodCyclomaticComplexity")
    private Status mapStatus(final Message message, final DmfActionUpdateStatus actionUpdateStatus,
            final Action action) {
        Status status = null;
        switch (actionUpdateStatus.getActionStatus()) {
        case DOWNLOAD:
            status = Status.DOWNLOAD;
            break;
        case RETRIEVED:
            status = Status.RETRIEVED;
            break;
        case RUNNING:
            status = Status.RUNNING;
            break;
        case CANCELED:
            status = Status.CANCELED;
            break;
        case FINISHED:
            status = Status.FINISHED;
            break;
        case ERROR:
            status = Status.ERROR;
            break;
        case WARNING:
            status = Status.WARNING;
            break;
        case DOWNLOADED:
            status = Status.DOWNLOADED;
            break;
        case CANCEL_REJECTED:
            status = handleCancelRejectedState(message, action);
            break;
        default:
            logAndThrowMessageError(message, "Status for action does not exisit.");
        }

        return status;
    }
@ SuppressWarnings ( "squid:MethodCyclomaticComplexity" ) private Status mapStatus ( final Message message , final DmfActionUpdateStatus actionUpdateStatus , final Action action ) { Status status = null ; switch ( actionUpdateStatus . getActionStatus ( ) ) { case DOWNLOAD : status = Status . DOWNLOAD ; break ; case RETRIEVED : status = Status . RETRIEVED ; break ; case RUNNING : status = Status . RUNNING ; break ; case CANCELED : status = Status . CANCELED ; break ; case FINISHED : status = Status . FINISHED ; break ; case ERROR : status = Status . ERROR ; break ; case WARNING : status = Status . WARNING ; break ; case DOWNLOADED : status = Status . DOWNLOADED ; break ; case CANCEL_REJECTED : status = handleCancelRejectedState ( message , action ) ; break ; default : logAndThrowMessageError ( message , "Status for action does not exisit." ) ; } return status ; }
mapping