Here you can find the source of getCache(String cacheName)
public static ConcurrentMap<?, ?> getCache(String cacheName)
//package com.java2s; /*//from w w w . j a v a 2s .co m * Copyright (c) 2016 Ericsson India Global Services Pvt Ltd. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; public class Main { static final ConcurrentMap<String, ConcurrentMap<?, ?>> MAP_OF_MAP = new ConcurrentHashMap<>(); public static ConcurrentMap<?, ?> getCache(String cacheName) { return MAP_OF_MAP.get(cacheName); } }