make swagger use a concurrent hashmap