try {
// (See records.service for the programmatic definition of this message)
logstashElement.logstash.config = logStashConfig;
BasicDBObject logStashDbo = (BasicDBObject) logstashElement.toDb();
logStashDbo.put("_id", requestId);
logStashDbo.put("maxDocs", context.getStandaloneMaxDocs());
logStashDbo.put("sourceKey", source.getKey());
logStashDbo.put("isAdmin", isAdmin);