Set<String> hashtags = new HashSet<String>(jsonHashtags);
eventContext.put("activityHashtags", hashtags);
eventContext.put("activityPayload", metric); /* need to fix this */
// Create the event stream entry
Event event = eventService.createEvent(EventId.ACTIVITY, inventoryItem, eventContext);
messageService.sendAccountMessage(event, inventoryItem, connection, System.currentTimeMillis(), MessageType.ACTIVITY,
eventContext.get("activityHashtags") != null ? (Set<String>) eventContext.get("activityHashtags") : null,
null);
}