public function resolve(ContentInterface $content)
    {
        $contentType = $this->contentTypeLoader->retrieveAll()
            ->filter(function (ContentTypeInterface $contentType) use ($content) {
                return is_a($content, $contentType->getContentClass());
            })
            ->first()
        ;
        if (!$contentType) {
            throw new InvalidContentException(sprintf(
                'No content type registered for "%s" content, check you configuration.',
                is_string($content) ? $content : get_class($content)
            ));
        }

        return $this->wrap($contentType, $content);
    }