router = ApplicationRouterSelector.findSPIRouter(clazz, loader);
if (router == null) {
theirLog.log(Level.SEVERE, LOGPREFIX + "failed_loading_ar", "provider not found");
return false;
}
ApplicationRouterSelector ad = ApplicationRouterSelector.getInstance();
if (theirLog.isLoggable(Level.FINEST)) {
theirLog.log(Level.FINEST, LOGPREFIX + "ad_reference", ad);
theirLog.log(Level.FINEST, LOGPREFIX + "ad_classloader: ",
ad.getClass().getClassLoader());
}
String moduleName = aDescriptor.getModuleName();
ad.setCustomApplicationRouter(moduleName, router, props);
}
catch (Exception e) {
theirLog.log(Level.SEVERE, LOGPREFIX + "failed_loading_ar",
e);
}