example chaincode in files/chaincode/src/map/map.go seems to be originally copied from HLF sources with lots of not so simple things, related permissions, added.
It seems to be an example from some other project.
Thus I suggest to revert to the original map.go from the HLF examples or to use the similar sample chaincode from fabric-skeleton