if ccPortalApplication.Licensed = true then
begin
if ccPortalApplication.LicenseModule = 'MYLICENSE') then
begin
ccScriptEngine.Log(ccLog_Info,'application licensed');
end else
begin
raise('license violation detected');
end;
end else
begin
ccScriptEngine.Log(ccLog_Info,'application not licensed');
end;