@classmethod
def _getOrCreate(cls):
    'Internal function to get or create global TaskContext.'
    if (cls._taskContext is None):
        cls._taskContext = TaskContext()
    return cls._taskContext
Internal function to get or create global TaskContext.
@classmethod
def _getOrCreate(cls):
    
    if (cls._taskContext is None):
        cls._taskContext = TaskContext()
    return cls._taskContext