public void initialize(GeoServer geoServer) throws Exception {
this.gs = geoServer;
final GeoServerInfo geoserverInfo = geoServer.getGlobal();
CoverageAccessInfo coverageAccess = geoserverInfo.getCoverageAccess();
if (coverageAccess == null){
coverageAccess = new CoverageAccessInfoImpl();
geoserverInfo.setCoverageAccess(coverageAccess);
}
initCoverage(coverageAccess);
geoServer.addListener( new ConfigurationListenerAdapter() {