def get_handler_impl(self, postgresql: 'Postgresql') -> 'AbstractMPPHandler':
        """Find and instantiate Handler implementation of this object.

        :param postgresql: a reference to :class:`Postgresql` object.

        :raises:
            :exc:`PatroniException`: if the Handler class haven't been found.

        :returns: an instantiated class that implements Handler for this object.
        """
        for cls in self._get_handler_cls():
            return cls(postgresql, self._config)
        raise PatroniException(f'Failed to initialize {self.__class__.__name__}Handler object')
Find and instantiate Handler implementation of this object.

        :param postgresql: a reference to :class:`Postgresql` object.

        :raises:
            :exc:`PatroniException`: if the Handler class haven't been found.

        :returns: an instantiated class that implements Handler for this object.
        
patroni/postgresql/mpp/__init__.py