public virtual bool ShouldSerializeFactoryDefaults() { return FactoryDefaults != null && FactoryDefaults.Count > 0; }