/// <summary>
 /// Determines whether the given type CAN be represented in the object graph. An exception is thrown if it cannot be.
 /// </summary>
 /// <param name="type">The type to check.</param>
 public static void EnsureValidGraphTypeOrThrow(Type type)
 {
     GraphValidation.IsValidGraphType(type, true);
 }