Got aggregate id stored in metadata
Support saving aggregateid in metadata