code: private void readParamsFromRegistryService(SessionProvider sessionProvider) throws PathNotFoundException,
        RepositoryException
     {
        String entryPath = RegistryService.EXO_SERVICES + "/" + SERVICE_NAME + "/" + BACKUP_PROPERTIES;
        RegistryEntry registryEntry = registryService.getEntry(sessionProvider, entryPath);
        Document doc = registryEntry.getDocument();
        Element element = doc.getDocumentElement();
  
        backupDir = getAttributeSmart(element, BACKUP_DIR);
        defIncrPeriod = getAttributeSmart(element, DEFAULT_INCREMENTAL_JOB_PERIOD);
        fullBackupType = getAttributeSmart(element, FULL_BACKUP_TYPE);
        incrementalBackupType = getAttributeSmart(element, INCREMENTAL_BACKUP_TYPE);
  
        LOG.info("Backup dir from RegistryService: " + backupDir);
        LOG.info("Default incremental job period from RegistryService: " + defIncrPeriod);
        LOG.info("Full backup type from RegistryService: " + fullBackupType);
        LOG.info("Incremental backup type from RegistryService: " + incrementalBackupType);
  
        checkParams();
     }
docs: Read parameters from RegistryService.
  
  @param sessionProvider
  The SessionProvider
  @throws RepositoryException
  @throws PathNotFoundException