Added first version of SchemaFactory does not yet suppot nested object.