Iterator<Map.Entry<String, Module>> it1 = passed.entrySet().iterator();
while (it1.hasNext() == true) {
Map.Entry<String, Module> entry = it1.next();
ModuleInfo info = entry.getValue().getInfo();
OverwriteQueryResult res = ModuleOverwriteUtils.canOverwrite(info);
if (res.getResult() == false) {
StringBuffer message = new StringBuffer("[MODULES] Unable to replace module " +
info.getName() + ":\n");
for (String reason : res.getReasons()) {
message.append(reason + "\n");
}
logger.warning(message.toString());
it1.remove();