static bool IsInvalidType (object data) { return !(data is MemoryResponseElement) && !(data is FileResponseElement) && !(data is SubstitutionResponseElement); }