added support for a new config option 'MaxPropertySize' which limits the max size of resource properties.