move fromMapByPath method into StringObjectMaps