code: public static void dispose() {
  
      if (xml2containerMap != null) {
        for (SpringContainer container : xml2containerMap.values()) {
          container.dispose();
        }
        xml2containerMap.clear();
      }
    }
docs: This method disposes the {@link #getInstance() singleton-instance} (if it exists).