public function generateMap()
    {
        $map = array();
        $database = $this->binding->getDatabase()->getData();

        foreach ($database->classes as $class) {
            $map[$class->name] = $class->clusters;
        }

        $this->map = $map;
        $this->cache->save($this->getCacheKey(), $map);
    }