def METHOD_NAME(self):
    if self.eventQueue is None:
        self.eventQueue = EventQueue.getGlobalEventQueue()
    if self.eventHandler is None:
        if self.eventQueue == EventQueue.getGlobalEventQueue():
            # If we are using the global event queue, then we also
            # want to use the global event handler.
            self.eventHandler = EventHandler.getGlobalEventHandler()
        else:
            # Otherwise, we need our own event handler.
            self.eventHandler = EventHandler(self.eventQueue)
    taskMgr.add(self.eventLoopTask, 'eventManager')