String strRole = "";
String strClient = "";
String strOrg = "";
String strWarehouse = "";
ActivationKey ak = new ActivationKey();
LicenseRestriction limitation = ak.checkOPSLimitations(variables.getDBSession());
if (limitation == LicenseRestriction.OPS_INSTANCE_NOT_ACTIVE
|| limitation == LicenseRestriction.NUMBER_OF_CONCURRENT_USERS_REACHED
|| limitation == LicenseRestriction.MODULE_EXPIRED) {
// it is only allowed to log as system administrator
strRole = DefaultOptionsData.getDefaultSystemRole(this, strUserAuth);