code: public void replaceInternalMap(final Map<KEY, ENTRY> map, boolean finishTransaction) throws CouldNotPerformException {
          if (map == null) {
              throw new NotAvailableException("map");
          }
          lock();
          try {
              try {
                  sandbox.replaceInternalMap(map);
                  entryMap.clear();
                  entryMap.putAll(map);
                  if (finishTransaction && !(this instanceof RemoteRegistry)) {
                      logger.warn("Replace internal map of [" + this + "]");
                      finishTransaction();
                  }
              } finally {
                  syncSandbox();
              }
          } catch (CouldNotPerformException ex) {
              ExceptionPrinter.printHistory(new CouldNotPerformException("Internal map replaced by invalid data!", ex), logger, LogLevel.ERROR);
          } finally {
              unlock();
          }
          if (this instanceof RemoteRegistry) {
              dependingRegistryObservable.notifyObservers(entryMap);
          }
          notifyObservers();
      }
docs: Replaces the internal registry map by the given one.
  <p>
  Use with care!
  
  @param map
  @param finishTransaction is true the registry transaction will be verified.
  
  @throws org.openbase.jul.exception.CouldNotPerformException