public function getMetadataFor($tableName, array $parentName = array())
    {
        $avaibleData = array();
        foreach ($this->getAllMetadata() as $metadata) {
            $avaibleData[] = $metadata->getName();
            if ($metadata->getName() === $tableName) {
                return $metadata;
            }
        }

        throw new \Exception(sprintf('"%s" not found in "%s"', $tableName, implode(', ', $avaibleData)));
    }