public void onMessage(@Name("message") Message message) throws Exception {
// store the message in the inbox
message.setAgent(getFirstUrl());
message.setBox("inbox");
ObjectDatastore datastore = new AnnotationObjectDatastore();
datastore.store(message);
// trigger receive event (not necessary)
String event = "receive";
ObjectNode params = JOM.createObjectNode();
params.put("message", JOM.getInstance().convertValue(message, ObjectNode.class));