The queue manager should be looked up in the registry only if queueManager == null