protected function getContentResponse(
        $data,
        $statusCode = Response::HTTP_OK,
        $links = null,
        $meta = null
    ) {
        $parameters      = $this->getParameters();
        $encoder         = $this->codecMatcher->getEncoder();
        $outputMediaType = $this->codecMatcher->getEncoderRegisteredMatchedType();

        $links === null ?: $encoder->withLinks($links);
        $meta  === null ?: $encoder->withMeta($meta);

        /** @var ResponsesInterface $responses */
        $responses = $this->getIntegration()->getFromContainer(ResponsesInterface::class);
        $content   = $encoder->encodeData($data, $parameters);

        return $responses->getResponse($statusCode, $outputMediaType, $content, $this->supportedExtensions);
    }