public static bool IsGetDescendantsSupported(this ISession session) { try { return session.RepositoryInfo.Capabilities.IsGetDescendantsSupported == true; } catch (NullReferenceException) { return false; } }