code: public final CommonEvent asCommonEvent(final JAXBContext ctx) {
          final Object m;
          if (getMeta() == null) {
              m = null;
          } else {
              m = getMeta().unmarshalContent(ctx);
          }
          final Object d = getData().unmarshalContent(ctx);
          if (getMeta() == null) {
              return new SimpleCommonEvent(getId(),
                      new TypeName(getData().getType()), d);
          }
          return new SimpleCommonEvent(getId(), new TypeName(getData().getType()),
                  d, new TypeName(getMeta().getType()), m);
      }
docs: Returns this object as a common event object.
  
  @param ctx
  In case the XML JAXB unmarshalling is used, you have to pass
  the JAXB context here.
  
  @return Converted object.