package org.atlasapi;

import static com.google.common.base.Preconditions.checkNotNull;

import javax.annotation.PostConstruct;
import javax.servlet.ServletContext;

import org.atlasapi.system.HealthModule;
import org.atlasapi.system.JettyHealthProbe;
import org.atlasapi.system.MetricsModule;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
@Import({
        HealthModule.class,
        MetricsModule.class,
        AtlasPersistenceModule.class
})
public class MonitoringWebModule {

    @Autowired
    private ServletContext servletContext;
    
    @PostConstruct
    public void setContext() {
        jettyHealthProbe().setServletContext(checkNotNull(servletContext));
    }
    
    @Bean 
    public JettyHealthProbe jettyHealthProbe() {
        return new JettyHealthProbe();
    }
    
}
@@ -190,106 +190,23 @@
 tem.
-HealthModule;%0Aimport org.atlasapi.system.JettyHealthProbe;%0Aimport org.atlasapi.system.MetricsModul
+JettyHealthProb
 e;%0Ai
@@ -384,184 +384,23 @@
 on;%0A
-import org.springframework.context.annotation.Import;%0A%0A@Configuration%0A@Import(%7B%0A        HealthModule.class,%0A        MetricsModule.class,%0A        AtlasPersistenceModule.class%0A%7D)
+%0A@Configuration
 %0Apub

Remove imports from MonitoringWebModule