Fix the artifact validation.
Implemented a factory for text objects.