public static bool isItemUsedInASchema(UML.Classes.Kernel.Element element, TSF_EA.Model model)
{
var sqlGetCountSchemas = @"select count(*) as countresult from t_document d
inner join t_object o on o.ea_guid = d.ElementID
where d.DocType = 'SC_MessageProfile' "
+ $"and d.StrContent like '%{element.uniqueID}%'";
var resultXml = model.SQLQuery(sqlGetCountSchemas);
var countNode = resultXml.SelectSingleNode(model.formatXPath("//countresult"));
return(countNode.InnerText != "0");
}