code: public void destroy() {
          this.poiMatchingCache.clear();
          this.wayMatchingCache.clear();
          for (Rule r : this.rulesList) {
              r.destroy();
          }
      }
docs: Must be called when this RenderTheme gets destroyed to clean up and free resources.