class TimestampFinder {

    public Date findInString(String string) {
        for (Entry<SimpleDateFormat, Pattern> e : datePatternsByRegularExpressions.entrySet()) {
            Matcher matcher = e.getValue().matcher(string);
            if (matcher.find()) {
                String group = matcher.group();
                Date timestamp = parseTimestamp(group, e.getKey());
                if (timestamp != null)
                    return timestamp;
            }
        }
        return null;
    }

    public  TimestampFinder();

}