throw new RegistryException(msg, e);
}
// activate the tenant on successful validation of the email, if it is not already activated.
if ("false".equals(resource.getProperty(StratosConstants.IS_EMAIL_VALIDATED))) {
tenantManager.activateTenant(tenantId);
// set the registry flag
resource.editPropertyValue(StratosConstants.IS_EMAIL_VALIDATED, "false", "true");
if (log.isDebugEnabled()) {
log.debug("Tenant : " + tenantId + " is activated after validating the " +