code: public EventDefinitionReferenceType<PortletType<T>> getOrCreateSupportedPublishingEvent()
     {
        List<Node> nodeList = childNode.get("supported-publishing-event");
        if (nodeList != null &&  nodeList.size() > 0)
        {
           return new EventDefinitionReferenceTypeImpl<PortletType<T>>(this, "supported-publishing-event", childNode, nodeList.get(0));
        }
        return createSupportedPublishingEvent();
     }
docs: If not already created, a new <code>supported-publishing-event</code> element will be created and returned.
  Otherwise, the first existing <code>supported-publishing-event</code> element will be returned.
  @return the instance defined for the element <code>supported-publishing-event</code>