protected function __getLoopsId($refkey = NULL) {
        $classname = get_class($this);

        if($refkey) {
            $reflection = new ReflectionClass($classname);
            if($reflection->hasProperty($refkey)) {
                $classname = $reflection->getProperty($refkey)->getDeclaringClass()->getName();
            }
        }

        if($page_parameter = $this->parameter) {
            $parts = $newparts = explode("\\", $classname);

            while($parameter = array_shift($page_parameter)) {
                $pos = array_search("_", $parts);

                if($pos == FALSE) {
                    break;
                }

                $parts[$pos] = "";
                $newparts[$pos] = $parameter;
            }

            $loopsid = implode("-", $newparts);
        }
        else {
            $loopsid = str_replace("\\", "-", $classname);
        }

        return $loopsid;
    }