diff -r bd1a76c91d5b -r b213fef2539e src/java/de/uapcore/lightpit/ModuleManager.java
--- a/src/java/de/uapcore/lightpit/ModuleManager.java Sat Mar 31 19:35:04 2018 +0200
+++ b/src/java/de/uapcore/lightpit/ModuleManager.java Sun Apr 01 18:16:47 2018 +0200
@@ -28,11 +28,11 @@
*/
package de.uapcore.lightpit;
+import de.uapcore.lightpit.entities.CoreDAOFactory;
+import de.uapcore.lightpit.entities.ModuleDao;
import java.sql.Connection;
-import java.sql.PreparedStatement;
-import java.sql.ResultSet;
import java.sql.SQLException;
-import java.util.ArrayList;
+import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
@@ -41,6 +41,7 @@
import java.util.Optional;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.stream.Collectors;
import javax.servlet.Registration;
import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
@@ -66,7 +67,7 @@
/**
* This flag is true, when synchronization is needed.
*/
- private AtomicBoolean dirty = new AtomicBoolean(true);
+ private final AtomicBoolean dirty = new AtomicBoolean(true);
private final CopyOnWriteArrayList