} else if (name.toLowerCase().endsWith(".jar")) {
// check if the custom module does not already exist
if (DcModules.get(name.substring(0, name.indexOf(".jar"))) == null) {
writeToFile(bis, new File(DataCrow.moduleDir, name));
ModuleJar moduleJar = new ModuleJar(name);
moduleJar.load();
modules.add(moduleJar);
}
}
client.notifyProcessed();
bis.close();