class TmsLayer implements RasterLayer, ProxyLayerSupport {

	private void retryInit() throws GeomajasException {
		// do not hammer the service
		long now = System.currentTimeMillis();
		if (now > lastInitRetry + cooldownTimeBetweenInitializationRetries) {
			lastInitRetry = now;
			try {
				log.debug("Retrying to (re-)initialize layer {}", getId());
				postConstruct();
			} catch (Exception e) { // NOSONAR
				log.warn("Failed initializing layer: ", e.getMessage());
			}
		}
		if (!usable) {
			throw new GeomajasException(ExceptionCode.LAYER_CONFIGURATION_PROBLEM);
		}
	}

}