private function getCollectionName($type)
    {
        if ($this->_toolbox->isGraph()) {

            if (!$this->_toolbox->getPodManager()->validateType($type)) {
                throw new FinderException("When finding documents in graphs, only the types 'vertex' and 'edge' are allowed.");
            }

            //Is a vertex
            if (strtolower($type) == "vertex") {
                return $this->_toolbox->getVertexCollectionName();

            //Is an edge
            } else {
                return $this->_toolbox->getEdgeCollectionName();
            }

        } else {
            return $type;
        }
    }