def METHOD_NAME(self):
    """
    Automatically created :class:`~pymongo.Connection` object corresponding
    to the provided configuration parameters.
    """
    if self.config_prefix not in current_app.extensions["pymongo"]:
        raise Exception("flask_pymongo extensions is not initialized")
    return current_app.extensions["pymongo"][self.config_prefix][0]