Changing Properties to scala map