/** * Disposes any resource held by this Map. * * <p>This method is meant to be called right after the map is no longer needed. That generally * happens at the end of a {@link Response#write} operation, and is meant to free any resource * the map implementation might be holding, specially if it contains a refrerence to {@link * WMSMapContent}, in which case it's mandatory that the map context's {@link * WMSMapContent#dispose()} method is called. */ public final void dispose() { if (mapContent != null) { mapContent.dispose(); } disposeInternal(); }