Infinispan keep caches in a map associated to the cache id and if one already exist for the passed id it's returned.