Do not reference Mirth® Connect internal Java classes in your JavaScript code.
These classes are not intended to be used directly by your channels and could result in unexpected behavior. They are also subject to change, so upgrading to a new version of Mirth® Connect could immediately break your channels.
Instead, make use of the user API. There is a link to browse the user API documentation in the left-hand navigation menu:
Any methods/functions in the user API are intended to be used by channels and are guaranteed to be supported and available when you upgrade Mirth® Connect. Future versions of Mirth® Connect may deprecate certain functions, in which case a warning message will appear in your server log.