_init($msg->command, $msg->headers, $msg->body); $this->map = json_decode($msg->body, true); } else { $this->_init("SEND", $headers, $msg); if ($this->headers == null) { $this->headers = array(); } $this->headers['transformation'] = 'jms-map-json'; $this->body = json_encode($msg); } } } ?>