private MessageQueue getQueue(QueueSession session, boolean pause) {
MessageQueue queue = service.getBus().getQueue(session.getSessionId());
if (pause && queue != null && queue.getActivationCallback() == null) {
queue.setActivationCallback(new QueueActivationCallback() {
volatile boolean resumed = false;
public void activate(MessageQueue queue) {
// log.info("Resume...");
if (resumed) {