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