Refactor DoctrineDriver to support acknowledgeMessage