/** * Synchronizes environment properties between the {@link GeoServerEnvironment} and the {@link * GeoWebCacheEnvironment}. (GeoServer properties will override GeoWebCache properties) * * @throws IllegalArgumentException */ public void syncEnv() throws IllegalArgumentException { if (gsEnvironment != null && gsEnvironment.isStale() && gwcEnvironment != null) { if (GeoServerEnvironment.ALLOW_ENV_PARAMETRIZATION && gsEnvironment.getProps() != null) { Properties gwcProps = gwcEnvironment.getProps(); if (gwcProps == null) { gwcProps = new Properties(); } gwcProps.putAll(gsEnvironment.getProps()); gwcEnvironment.setProps(gwcProps); } } }