Because of firewalls or other factors, the registration of Chameleon may fail. Should the registration fail for any reason, the fetchRegistrationCode() function will throw an exception, with a meaningful message (e.g. Invalid username/password). If requesting the registration code through use of the License is not an option on a machine (e.g. no Internet connection), then you must request the registration code manually, or as a part of the installation process.