if (sso.hasDefined(Constants.CACHE_CONTAINER)) {
ServiceName ssoName = WebSubsystemServices.JBOSS_WEB_HOST.append(name, Constants.SSO);
serviceBuilder.addDependency(ssoName, SSOClusterManager.class, service.getSSOClusterManager());
SSOClusterManagerService ssoService = new SSOClusterManagerService();
SSOClusterManager ssoManager = ssoService.getValue();
ssoManager.setCacheContainerName(sso.get(Constants.CACHE_CONTAINER).asString());
if (sso.hasDefined(Constants.CACHE_NAME)) {
ssoManager.setCacheName(sso.get(Constants.CACHE_NAME).asString());
}
ServiceBuilder<SSOClusterManager> builder = serviceTarget.addService(ssoName, ssoService);
ssoService.getValue().addDependencies(serviceTarget, builder);
newControllers.add(builder.setInitialMode(ServiceController.Mode.ON_DEMAND).install());
}