async def METHOD_NAME(self, init):
    config = PluginConfiguration(**init)
    resource = await resource_db.load(config.source.id)
    mongo_config = resource.credentials.get_credentials(self, output=MongoConfiguration)  # type: MongoConfiguration
    self.client = MongoClient(mongo_config)
    self.config = config