def METHOD_NAME(self, with_relations=[], flayer=None, ffactory=None, request=None, res={}):
    """
    Check for relations adn add to res
    :param with_relations: relations id list
    :param source_layer: QgsVectorLayer instance of father
    :param res: result dict to send into response
    """
    qgs_prj = get_qgs_project(flayer.project.qgis_file.path)
    relations = None
    for relation_id in with_relations:
        qgs_relation = qgs_prj.relationManager().relation(relation_id)
        if not qgs_relation.isValid():
            logger.error(f'Relation with id {relation_id} is not valid.')
            continue
        csource_layer = qgs_relation.referencingLayer()
        clayer = flayer.project.layer_set.get(qgs_layer_id=csource_layer.id())
        # get every qplotly active for child layer
        qplotlies = clayer.qplotlywidget_set.all()
        if len(qplotlies) == 0:
            continue
        if not relations:
            relations = {
                relation_id: []
            }
        else:
            relations.update({
                relation_id: []
            })
        for qplotly in qplotlies:
            settings = QplotlySettings()
            if not settings.read_from_model(qplotly):
                logger.error(f'Error on load qlotly settings for layer pk {clayer.pk}.')
                continue
            factory = QplotlyFactoringRelation(settings, request=request, layer=clayer)
            factory.source_layer = csource_layer
            # create expression
            ffiltered_features = ffactory.source_layer.getFeatures(ffactory.qgsrequest)
            factory.set_father_features_expresion(qgs_relation=qgs_relation,
                                                  ffiltered_features=ffiltered_features)
            factory.rebuild()
            relations[relation_id].append({
                'id': qplotly.pk,
                'data': self._get_trace(factory)
            })
        if 'relations' not in res and relations:
            res.update({'relations': relations})