Use accessors of CommandResult.