if (needUpdateDb) {
try {
dbUpdater.getSegmentWriter().wrtieFetch(crawldatum);
if (isContentStored) {
Content content = new Content();
content.setUrl(url);
if (response.getContent() != null) {
content.setContent(response.getContent());
} else {
content.setContent(new byte[0]);
}
content.setContentType(contentType);
dbUpdater.getSegmentWriter().wrtieContent(content);
}
if (parsing && page.getParseResult() != null) {
dbUpdater.getSegmentWriter().wrtieParse(page.getParseResult());
}