protected function validateAndResolveId($id)
    {
        $this->validateId($id);
        $id = $this->resolveId($id);
        if (!isset($this->items[$id])) {
            throw new Exception\ItemNotFoundException(sprintf('The "%s" item does not exist.', $id));
        }

        return $id;
    }