public static bool ArePrivateWorkingCopySupported(this ISession session) { try { return session.RepositoryInfo.Capabilities.IsPwcUpdatableSupported.GetValueOrDefault(); } catch (NullReferenceException) { return false; } }