code: @Override
      public boolean rename(String newStorageName) {
          assertConnectionOpen();
          if(storageName.equals(newStorageName)) {
              return false;
          }
  
          catalog.clear();
  
          try {
              moveDirectory(getRootPath(storageName), getRootPath(newStorageName));
          }
          catch (IOException ex) {
              throw new UncheckedIOException(ex);
          }
  
          logger.trace("Renamed storage {} to {}", storageName, newStorageName);
          storageName = newStorageName;
          return true;
      }
docs: {@inheritDoc}