case NONE:
securityDomain = new SecurityMetaData();
break;
}
// Sanity check
if(securityDomain.requiresDomain() && domainName == null)
throw new IllegalStateException("null security domain not allowed for SecurityDeploymentType " + deploymentType);
// Set the domain
securityDomain.setDomain(domainName);
//
return securityDomain;