public static ActionType convertActionType(final MgmtActionType actionTypeRest) {
        if (actionTypeRest == null) {
            return null;
        }

        switch (actionTypeRest) {
        case SOFT:
            return ActionType.SOFT;
        case FORCED:
            return ActionType.FORCED;
        case TIMEFORCED:
            return ActionType.TIMEFORCED;
        case DOWNLOAD_ONLY:
            return ActionType.DOWNLOAD_ONLY;
        default:
            throw new IllegalStateException("Action Type is not supported");
        }
    }
public static ActionType convertActionType ( final MgmtActionType actionTypeRest ) { if ( actionTypeRest == null ) { return null ; } switch ( actionTypeRest ) { case SOFT : return ActionType . SOFT ; case FORCED : return ActionType . FORCED ; case TIMEFORCED : return ActionType . TIMEFORCED ; case DOWNLOAD_ONLY : return ActionType . DOWNLOAD_ONLY ; default : throw new IllegalStateException ( "Action Type is not supported" ) ; } }
Convert the given {@link MgmtActionType} into a corresponding repository
{@link ActionType}.

@param actionTypeRest
the REST representation of the action type

@return <null> or the repository action type