package i5.las2peer.services.mobsos.successModeling;

import i5.las2peer.api.Context;

import javax.ws.rs.container.ContainerRequestContext;
import javax.ws.rs.container.ContainerRequestFilter;
import javax.ws.rs.container.PreMatching;
import javax.ws.rs.ext.Provider;

/**
 * Start the background tasks responsible for refreshing the models and catalogs.
 * They should be triggered before the first request and keep running during the web servers lifetime.
 */
@Provider
@PreMatching
public class PrematchingRequestFilter implements ContainerRequestFilter {

    @Override
    public void filter(ContainerRequestContext ctx) {
        MonitoringDataProvisionService service = (MonitoringDataProvisionService) Context.getCurrent()
                .getService();
        service.startUpdatingMeasures();
        System.out.println("Checking if DB credentials need to be inserted");
        if (service.insertDatabaseCredentialsIntoQVService) {
            System.out.println("insertDatabaseCredentialsIntoQVService = TRUE");
            service.ensureMobSOSDatabaseIsAccessibleInQVService();
        }
    }
}
@@ -809,220 +809,61 @@
     
-System.out.println(%22Checking if DB credentials need to be inserted%22);%0A        if (service.insertDatabaseCredentialsIntoQVService) %7B%0A            System.out.println(%22insertDatabaseCredentialsIntoQVService = TRUE%22);
+if (service.insertDatabaseCredentialsIntoQVService) %7B
 %0A   

Remove debug output