public function isAcceptable(RequestInterface $request)
    {
        $accept = $request->getHeaderLine('Accept');
        if ($accept && preg_match('#^application/([^+\s]+\+)?json#', $accept)) {
            return true;
        }

        return false;
    }