public static bool SupportsSelectiveIgnore(this ISession session) {
try {
var type = session.GetTypeDefinition("gds:sync");
if (type == null) {
return false;
}
foreach (var prop in type.PropertyDefinitions) {
if (prop.Id.Equals("gds:ignoreDeviceIds")) {
return true;
}
}
} catch (CmisObjectNotFoundException) {
}
return false;
}
}