public function id($key = null, $default = null)
    {
        $element = $this->getHandler()->getKeyMapElement($key, $default);
        return is_array($element) && array_key_exists('id', $element) ? (int) $element['id'] : $default;
    }