public Object executeActions(
     EntityView entityView,
     String action,
     Map<String, Object> actionParams,
     OutputStream outputStream) {
   Object result = null;
   if ("double".equals(action)) {
     result = myDoubleAction(entityView);
   } else if ("xxx".equals(action)) {
     MyEntity me = (MyEntity) getEntity(entityView.getEntityReference());
     me.extra = "xxx";
     me.setStuff("xxx");
     myEntities.put(me.getId(), me);
   } else if ("clear".equals(action)) {
     myEntities.clear();
   }
   return result;
 }