SchemaLoaderStrategy.setModelDefinition(data) is being used in order to allow setting a model schema by code. The method gets the given model schema and stores it into an internal collection of models. It would be safer to finally store a deep clone of the schema instead of using it as given.