}
doc.addField(modificationDateField, UTCTimeStamper.nowUtcDate());
SolrServer server = getActiveSolrServer();
try {
server.add(doc);
server.commit();
} catch (Exception e) {
String msg = String.format("Could not register example '%s' with topics: ['%s']", exampleId,
StringUtils.join(topics, "', '"));
throw new TrainingSetException(msg, e);
}