map = cubeCache.get();
Cube cube = map == null ? null : map.get(cubeName);
// TTL check
if (cube != null && (cube instanceof SimpleCube)) {
SimpleCube scube = (SimpleCube) cube;
if (System.currentTimeMillis() - scube.getTimestamp() >= cubeCacheTTL) {
cube = null;
}
}
if (cube == null) {