Methods and apparatus for communication between an application and a
device. In one embodiment, a set of class mappings maps parameters
between a parser and an application data model. The parser is reversible,
and the parser can be used to both parse a received command and
reconstruct a command.