private void LoadMetadata()
        {
            if (this.metadata == null)
            {
                Logger.LogInfo("We have no existing in-memory metadata");
                if (File.Exists(path))
                {
                    try
                    {
                        this.metadata = XmlFile.ReadFile<UsersMetadata>(path);
                        Logger.LogInfo("Succesfully loaded metadata from file");
                    }
                    catch (Exception ex)
                    {
                        Logger.LogError("Error loading metadata from file", ex);
                    }
                }

                if (this.metadata == null)  // still null. Not loaded from file, or something went wrong when loading from file
                {
                    this.metadata = new UsersMetadata();
                }
            }
        }
        public void Initialize(Guid dataOwnerId)
        {
            this.metadata = new UsersMetadata();
            this.metadata.DataOwnerId = dataOwnerId;

            SaveMetadata();
        }