code: private void moveOldStructure() throws Exception
     {
        ExtendedSession session = (ExtendedSession)service.getStorageSession();
        try
        {
           if (session.itemExists(storagePathOld))
           {
              return;
           }
           else
           {
              session.move(service.getStoragePath(), storagePathOld, false);
              session.save();
           }
        }
        finally
        {
           session.logout();
        }
     }
docs: Method for moving old storage into temporary location.
  @throws Exception