Add the event publish() method to the Runtime definition.