private synchronized static void loadAuthenticators_internal(LocalDispatcher dispatcher) {
if (!authenticatorsLoaded) {
Iterator<Authenticator> it = ServiceLoader.load(Authenticator.class, getContextClassLoader()).iterator();
while (it.hasNext()) {
try {
Authenticator auth = it.next();
if (auth.isEnabled()) {
auth.initialize(dispatcher);
authenticators.add(auth);
}
} catch (ClassCastException e) {
Debug.logError(e, module);
}