Using new SimpleMetadata abstraction to read and write attributes from metadata object.