Not sure if it's necessary, but we could implement Spring's Converter for each of these, Map->bytes and bytes->Map.