def pack(self):
headers = '<STR_LIT>'.join(<EOL>['<STR_LIT>' % (f, v) for f, v in sorted(self.headers.items())]<EOL>)<EOL>stomp_message = "<STR_LIT>" % (self._cmd, headers, self.body, NULL)<EOL>return stomp_message<EOL>
Called to create a STOMP message from the internal values.