docs: @Override
    public final synchronized void releaseBeans() throws Exception {
      // stop logger's flushes to file
      ILog log = lazyGetLogger();
      if (log != null && log instanceof ALogFile) {
        ALogFile logf = (ALogFile) log;
        logf.debug(null, AFactoryAppBeans.class,
          "Send stop to logger file: " + logf.getPath());
        logf.setNeedRun(false);
      }
      log = lazyGetSecureLogger();
      if (log != null && log instanceof ALogFile) {
        ALogFile logf = (ALogFile) log;
        logf.debug(null, AFactoryAppBeans.class,
          "Send stop to logger file: " + logf.getPath());
        logf.setNeedRun(false);
      }
      getEntitiesMap().clear();
      getBeansMap().clear();
      //inner factories clear:
      this.factoryBldServices = null;
      this.factoryOverBeans = null;
      this.factoryReplicatorXmlHttps = null;
      this.factoryDatabaseWriterXml = null;
      //need to reinitialize inner factories
      this.isReinitializing = true;
    }