public function toResourceIdentifier($object): ResourceIdentifierObject
    {
        $context = $this->createContext(get_class($object));

        $id   = $this->identifierHandler->getIdentifier($object, $context);
        $type = $this->resolveType($object, $context);

        return new ResourceIdentifierObject($id, $type);
    }