if (ok) {
if (! authenValves.isEmpty()) {
Map<String, Valve> authenvalves = new HashMap<String, Valve>();
for (String name : authenValves.keySet()) {
// Instantiate valve and add properties.
AuthenticatorValve authenvalve = (AuthenticatorValve) authenValves.get(name);
Valve valve = null;
try {
valve = (Valve) authenvalve.classz.newInstance();
} catch (InstantiationException e) {
ok = false;