Use putIfAbsent when probing the parser caches as suggested by Robert Nagy.