Changed schemaFactory to create empty one and modified element