com.sun.enterprise.config.serverbeans.Cluster cluster = domain.getClusterNamed(target);
if (cluster != null) {
config = domain.getConfigNamed(cluster.getConfigRef());
}
}
final SecurityService securityService = config.getSecurityService();
// ensure we have the file authrealm
if (authRealmName == null)
authRealmName = securityService.getDefaultRealm();
AuthRealm fileAuthRealm = null;
for (AuthRealm authRealm : securityService.getAuthRealm()) {
if (authRealm.getName().equals(authRealmName))
fileAuthRealm = authRealm;
}
if (fileAuthRealm == null) {
report.setMessage(localStrings.getLocalString(