Updated RewriteHandler and tests using BeanConfigTest.

Change-Id: I8e8e2756ccfe4e995b3dcaffd3eb2852ecc88353
diff --git a/core/Changes b/core/Changes
index 210c625..ee3b3cb 100644
--- a/core/Changes
+++ b/core/Changes
@@ -1,6 +1,8 @@
 # version 0.61.5
-17/11/2018
+17/12/2018
    - Added search timeout in meta query (margaretha)
+18/12/2018
+   - Updated RewriteHandler (margaretha)
 
 version 0.61.4
 14/11/2018
diff --git a/core/src/main/java/de/ids_mannheim/korap/resource/rewrite/RewriteHandler.java b/core/src/main/java/de/ids_mannheim/korap/resource/rewrite/RewriteHandler.java
index 59101c1..130bc2d 100644
--- a/core/src/main/java/de/ids_mannheim/korap/resource/rewrite/RewriteHandler.java
+++ b/core/src/main/java/de/ids_mannheim/korap/resource/rewrite/RewriteHandler.java
@@ -150,10 +150,10 @@
     }
 
 
-    public <T extends ContextHolder> void insertBeans (T beans) {
-        this.beans = beans;
-        this.config = beans.getConfiguration();
-    }
+//    public <T extends ContextHolder> void insertBeans (T beans) {
+//        this.beans = beans;
+//        this.config = beans.getConfiguration();
+//    }
 
 
 
diff --git a/core/src/main/java/de/ids_mannheim/korap/web/SearchKrill.java b/core/src/main/java/de/ids_mannheim/korap/web/SearchKrill.java
index f3505ce..65be493 100644
--- a/core/src/main/java/de/ids_mannheim/korap/web/SearchKrill.java
+++ b/core/src/main/java/de/ids_mannheim/korap/web/SearchKrill.java
@@ -83,9 +83,9 @@
         }
         if (index != null){
             String result = new Krill(json).apply(index).toJsonString();
-//            if (DEBUG){
+            if (DEBUG){
                 jlog.debug(result);
-//            }
+            }
             return result;
         }
         Result kr = new Result();