I think there's a potential concurrency issue here. In this method, the access to the queues map is managed by the queuesLock. However, in setQueueConfiguration, it's managed by the method's monitor. There's potencial for that map being accessed concurrently