public static PropertyContextFacade GetPropertyByName(this IFrameworkFacade frameworkFacade, string domainType, string instanceId, string propertyName) { var link = frameworkFacade.OidTranslator.GetOidTranslation(domainType, instanceId); var propertyContext = frameworkFacade.GetProperty(link, propertyName); // found but a collection if (propertyContext.Property.IsCollection) { throw new PropertyResourceNotFoundNOSException(propertyName); } return(propertyContext); }