private SolrInputDocument createIndexDocument(Person resource) {
   Map<String, Object> additionalIndexedProperties = new HashMap<String, Object>();
   additionalIndexedProperties.put("description", resource.getDescription());
   additionalIndexedProperties.put("gender", resource.getGender());
   additionalIndexedProperties.put("language", resource.getLanguage());
   additionalIndexedProperties.put("nationality", resource.getNationality());
   additionalIndexedProperties.put("emailaddresses", resource.getEmailAddresses());
   ResourceToSolrTranslator translator = new ResourceToSolrTranslator();
   translator.add(resource, additionalIndexedProperties);
   return translator.getInputDocument();
 }
 private SolrInputDocument createIndexDocument(Session resource) {
   Map<String, Object> additionalIndexedFields = new HashMap<String, Object>();
   additionalIndexedFields.put("eventid", resource.getEventId());
   additionalIndexedFields.put("slot", resource.getTimeslot());
   additionalIndexedFields.put("state", resource.getState());
   additionalIndexedFields.put("format", resource.getFormat());
   additionalIndexedFields.put("room", resource.getRoom());
   additionalIndexedFields.put("level", resource.getLevel());
   additionalIndexedFields.put("title", resource.getTitle());
   additionalIndexedFields.put("lead_text", resource.getLead());
   additionalIndexedFields.put("body_text", resource.getBody());
   additionalIndexedFields.put("language", resource.getLanguage());
   additionalIndexedFields.put("speakers", resource.getSpeakers());
   additionalIndexedFields.put("published", resource.isPublished());
   ResourceToSolrTranslator translator = new ResourceToSolrTranslator();
   translator.add(resource, additionalIndexedFields);
   return translator.getInputDocument();
 }
 private SolrInputDocument createIndexDocument(Event resource) {
   ResourceToSolrTranslator translator = new ResourceToSolrTranslator();
   translator.add(resource, null);
   return translator.getInputDocument();
 }