public static List <QueriesParameter> From(ModelType model, List <ContentBase> contents, List <TemplateData> templatesData)
        {
            if (model != ModelType.Query)
            {
                return(new List <QueriesParameter>());
            }

            if (ContentQuery.Exists(new TemplateStandard(TemplateStandardType.QueriesActor), contents))
            {
                return(ContentQuery.FilterByStandard(new TemplateStandard(TemplateStandardType.QueriesActor), contents).Where(x => x.IsProtocolBased).Select(x => new QueriesParameter(x.RetrieveProtocolQualifiedName(), x.RetrieveQualifiedName())).ToList());
            }

            return(templatesData.Where(data => data.HasStandard(TemplateStandardType.QueriesActor)).Select(data => new QueriesParameter(data.Parameters())).ToList());
        }