dynamic exec( Request a)

update store with Command defined by Request

Source

exec(Request a) {
  store.update(config[a.type](a.payload));
}