}
if (rawReleaseDate.length() > 3 && !rawReleaseDate.startsWith("?")) {
releaseYear = Integer.valueOf(rawReleaseDate.substring(0, 4).trim());
}
Document doc = db.getDocumentWithKey(entryKey, true);
doc.replaceItemValue("StartDate", expectedFilmDate);
doc.replaceItemValue("Title", expectedTitle);
doc.replaceItemValue("Type", entryType);
doc.replaceItemValue("EpisodeTitle", episodeTitle);
doc.replaceItemValue("EpisodeNumber", episodeNumber);
doc.replaceItemValue("SeasonNumber", seasonNumber);
doc.replaceItemValue("ShowNumber", showNumber);
doc.replaceItemValue("ReleaseYear", releaseYear);
doc.save();
} catch (Throwable t) {
System.out.println("Exception processing line: " + curLine);
t.printStackTrace();
}
}