private void internalAddStatus(Status status) throws IOException { XContentBuilder jsonifiedObject; jsonifiedObject = XContentFactory.jsonBuilder() .startObject() .field("username", status.getUsername()) .field("domain", status.getDomain()) .field("statusDate", status.getStatusDate()) .field("content", status.getContent()) .endObject(); addObject(status.getClass(), status.getStatusId(), jsonifiedObject); }