}
else {
ThreadLocalCache<Slice, JsonExtractor> cache;
switch (name) {
case JSON_EXTRACT_SCALAR_FUNCTION_NAME:
cache = new JsonExtractCache(20, true);
break;
case JSON_EXTRACT_FUNCTION_NAME:
cache = new JsonExtractCache(20, false);
break;
default:
throw new IllegalArgumentException("Unsupported method " + name);
}