def _get_registry(self):
    if (self._registry is None):
        return get_current_registry()
    return self._registry
def _get_registry(self):
    if (self._registry is None):
        return get_current_registry()
    return self._registry