context.addValve(new SSLAuthenticator());
} else if ("NONE".equals(authMethod)) {
context.addValve(new NonLoginAuthenticator());
}
OpenEJBValve openejbValve = new OpenEJBValve();
context.getPipeline().addValve(openejbValve);
} else {
throw new IllegalArgumentException("Invalid authMethod: " + authMethod);
}