private static void storeDates(ReleaseData target, Map<NfoField, MatchResult> matchSource,
int dayGroupIndex, int monthGroupIndex, int yearGroupIndex) {
if (matchSource.containsKey(NfoField.RELEASE_DATE)) {
Matcher mt = DATE.matcher(matchSource.get(NfoField.RELEASE_DATE).getMatch());
if (mt.matches()) {
target.setReleaseDate(new NfoDate(mt.group(dayGroupIndex),
mt.group(monthGroupIndex), mt.group(yearGroupIndex)));
}
}
if (matchSource.containsKey(NfoField.STREET_DATE)) {
Matcher mt = DATE.matcher(matchSource.get(NfoField.STREET_DATE).getMatch());
if (mt.matches()) {
target.setStreetDate(new NfoDate(mt.group(3), mt.group(2), mt.group(1)));
}
}
}