{
// And we must wait for any force delivery to be executed - this is executed async so we add a future to the
// executor and
// wait for it to complete
Future future = new Future();
messageQueue.getExecutor().execute(future);
boolean ok = future.await(10000);
if (!ok)
{
log.warn("Timed out waiting for executor to complete");
}