GeoServerUserGroupService ugService = manager.loadUserGroupService(XMLUserGroupService.DEFAULT_NAME);
if (ugService != null) {
passwordEncoderName = ugService.getPasswordEncoderName();
GeoServerUser user = ugService.getUserByUsername(ADMIN_USERNAME);
if (user != null) {
changeItPage = new EditUserPage(ugService.getName(), user);
}
}
} catch (IOException e) {
LOGGER.log(Level.WARNING, "Error looking up admin user", e);
}