Composite metadata model (de)serialization implemented, also refactored
all way the metadata model is serialized and deserialized