Certain exceptions which are caught in the CommandChannelImpl justify a retry of the dispatching command instead of failing directly. For example, if an OutOfDirectMemoryError occurs, we can retry with a back-off instead of throwing a AxonServerException further up.
The TODO's on line 328 and 365 correspond to this issue.