public OpenAnotherVersionResrouceWizard(IRepositoryViewObject processObject) {
    this.repoObject = processObject;
    originaleObjectLabel = processObject.getProperty().getLabel();
    originalVersion = processObject.getProperty().getVersion();

    ERepositoryStatus status = processObject.getRepositoryStatus();
    if (status == ERepositoryStatus.LOCK_BY_OTHER
        || status.equals(ERepositoryStatus.LOCK_BY_USER)
            && RepositoryManager.isOpenedItemInEditor(processObject)) {
      alreadyEditedByUser = true;
    }
  }
 /* (non-Javadoc)
  * @see org.talend.repository.ui.wizards.CheckLastVersionRepositoryWizard#performFinish()
  */
 public boolean performFinish() {
   if (this.sapTablePage.isPageComplete()) {
     RepositoryUpdateManager.updateSAPFunction(sapTablePage.getFunctionUnit());
     ProxyRepositoryFactory localProxyRepositoryFactory = ProxyRepositoryFactory.getInstance();
     try {
       localProxyRepositoryFactory.save(this.repositoryObject.getProperty().getItem());
       RepositoryManager.refresh(ERepositoryObjectType.METADATA_SAP_FUNCTION);
       closeLockStrategy();
     } catch (PersistenceException persistenceException) {
       String message = persistenceException.toString();
       new ErrorDialogWidthDetailArea(
           getShell(),
           "org.talend.repository",
           Messages.getString("CommonWizard.persistenceException"),
           message);
       log.error(Messages.getString("CommonWizard.persistenceException") + "\n" + message);
     }
   }
   return true;
 }