made buildSchema private. Used Model class module type list instead of custom one.