code: @SuppressWarnings({ "rawtypes", "unchecked" })
    public <T extends AbstractFlowNodeBuilder> T messageEventDefinitionDone() {
      return (T) ((Event) element.getParentElement()).builder();
    }
docs: Finishes the building of a message event definition.
  
  @param <T>
  @return the parent event builder