Better exception message. Helper functions to read resources
Dispatch.as accepts interface
Transfrom MSDN example to JOA finished