A M2MRuleset is composed by multiple MappingRule elements, and by Rhapsody API requests. The API requests, are written in JavaScript and part of the M2M model. These JavaScript elements can be a Function or a Variable, and are interpreted and executed by the M2M Engine inside the Rhapsody internal JVM (Java Virtual Machine).