code: @Override
     public void start()
     {
        try
        {
           MigrationTool migrationTool = new MigrationTool(this);
           if (migrationTool.migrationRequired())
           {
              LOG.info("Detected old organization service structure.");
              migrationTool.migrate();
           }
  
           Session session = getStorageSession();
           try
           {
              session.getItem(this.storagePath);
              // if found do nothing, the storage was initialized before.
           }
           catch (PathNotFoundException e)
           {
              createStructure();
           }
           finally
           {
              session.logout();
           }
        }
        catch (RepositoryException e)
        {
           throw new IllegalArgumentException("Can not configure storage", e);
        }
  
        super.start();
     }
docs: {@inheritDoc}