FileRealm fr = new FileRealm(rf.getAbsolutePath());
Enumeration users = fr.getUserNames();
if (users.hasMoreElements()) {
String au = (String) users.nextElement();
if (!users.hasMoreElements()) {
FileRealmUser fru = (FileRealmUser)fr.getUser(au);
for (String group : fru.getGroups()) {
if (group.equals(AdminConstants.DOMAIN_ADMIN_GROUP_NAME))
// there is only one admin user, in the right group, default to it
logger.log(Level.FINE, "Attempting access using default admin user: {0}", au);
return au;
}