code: public int getState()
     {
        if (state != FINISHED)
        {
           if (LOG.isDebugEnabled())
           {
              for (BackupChain bc : workspaceBackups)
              {
                 LOG.debug(repositoryBackupId + " : " + getState(bc.getFullBackupState()));
              }
           }
           
           int fullBackupsState =-1;
           int incrementalBackupsState = -1;
  
           for (BackupChain bc : workspaceBackups)
           {
              fullBackupsState = bc.getFullBackupState();
              
              if (fullBackupsState != BackupJob.FINISHED)
              {
                 break;
              }
           }
           
           for (BackupChain bChein : workspaceBackups)
           {
              if (bChein.getBackupConfig().getBackupType() == BackupManager.FULL_AND_INCREMENTAL)
              {
                 incrementalBackupsState = bChein.getIncrementalBackupState();
                 
                 if (incrementalBackupsState == BackupJob.WORKING )
                 {
                    break;
                 }
              }
           }
  
           if (config.getBackupType() == BackupManager.FULL_BACKUP_ONLY)
           {
              if (fullBackupsState == BackupJob.FINISHED)
              {
                 state = FINISHED;
              }
              else
              {
                 state = WORKING;
              }
           }
           else
           {
              if (fullBackupsState == BackupJob.FINISHED && incrementalBackupsState == BackupJob.FINISHED)
              {
                 state = FINISHED;
              }
              else if (fullBackupsState == BackupJob.FINISHED && incrementalBackupsState == BackupJob.WORKING)
              {
                 state = FULL_BACKUP_FINISHED_INCREMENTAL_BACKUP_WORKING;
              }
              
              else
              {
                 state = WORKING;
              }
           }
        }
        
        return state;
     }
docs: {@inheritDoc}