public SearchResult(String id, String prefix, String reference, String title, String url, Date timestamp, Map<String, Object> fields) { super(id, prefix, reference, title, url); // set up the dates correctly if (timestamp == null) { timestamp = DEFAULT_DATE; } if (fields != null) { for (Entry<String, Object> entry : fields.entrySet()) { if (entry.getValue() != null) { setProperty(entry.getKey(), entry.getValue().toString()); } } } }