setLicense

setLicense(licenseName)

Licenses the component.

Tries to find the license in the following locations: 1. Explicit path. 2. The folder of the component jar file.