code: public static Map<String, Object> identityMap(CouchbaseEvent source) {
          Map<String, Object> root = new HashMap<String, Object>();
          Map<String, String> event = new HashMap<String, String>();
  
          event.put("name", source.getClass().getSimpleName().replaceAll("Event$", ""));
          event.put("type", source.type().toString());
          root.put("event", event);
  
          return root;
      }
docs: Takes a {@link CouchbaseEvent} and returns a map with event information.
  
  @param source the source event.
  @return a new map which contains name and type info in an event sub-map.