int statusCode = readStatusCode(headerReader);
MultivaluedMap<String, String> headers = readHeaders(headerReader);
byte[] responseContent = Arrays.copyOfRange(cachedData, headerSeparatorIndex + HEADER_SEPARATOR.length, cachedData.length);
return new CachedResponse(statusCode, headers, responseContent);
} catch (IOException ex) {
throw new RuntimeException("Corrupted cache entry", ex);
}
}