String key = getRequest().getParameter(ServletConstants.EE.LICENSE_KEY);
if(StringUtils.isEmpty(key)) {
addWarning("license.warning.emptykey"); //$NON-NLS-1$
} else {
try {
License license = WOJServer.getInstance().getLicenseService().add(key);
setSelectedLicense(license);
} catch (Exception e) {
addError("license.error.decodingkey", new Object[]{key}); //$NON-NLS-1$
}
}