private MetadataCompoundAttribute getExistingMetadataCompoundAttribute(string name)
{
if (createdCompoundsDic.ContainsValue(name))
{
long id = createdCompoundsDic.Where(k => k.Value.Equals(name)).FirstOrDefault().Key;
return metadataAttributeManager.MetadataCompoundAttributeRepo.Get(id);
}
return null;
}