How about adding outgoingMsg.setEdgeMap(newEdgetype, edgeMap) inside MessageWriable and changing bit inside message?