public function generateID()
    {
        $id = $this->getID();
        $fmt_string = "%08s";
        if (is_array($id))
            $id = implode("-", $id);

        if (empty($id))
            throw new Exception("Cannot generate an ID for an empty object");

        $id = substr(sha1($id), 0, 10);
        $acl_class = $this->getACLClass();

        return $acl_class . "#" . $id;
    }