Content type guessing from serialized Document