if (o instanceof ModuleDescriptor) {
ModuleDescriptor moduleDescriptor = (ModuleDescriptor) o;
BundleDescriptor bd = moduleDescriptor.getDescriptor();
if (bd instanceof ApplicationClientDescriptor) {
ApplicationClientDescriptor appclientDescriptor = (ApplicationClientDescriptor) bd;
JavaWebStartAccessDescriptor jwsAD = appclientDescriptor.getJavaWebStartAccessDescriptor();
if (jwsAD == null || jwsAD.isEligible()) {
mds.add(moduleDescriptor);
}
} else {
if (logger != null) {
logger.warning("During app/app client loading, expected bundleDescriptor for app client module to be of type ApplicationClientDescriptor but it is " + bd.getClass().getName() + "; ignoring it and continuing");