code: private String getWorkingRepositoryName() throws RepositoryException
     {
        if (observationListenerConfiguration.getRepository() == null)
        {
           return repositoryService.getCurrentRepository().getConfiguration().getName();
        }
        else
        {
           return observationListenerConfiguration.getRepository();
        }
     }
docs: Get working repository name. Returns the repository name from configuration
  if it previously configured and returns the name of current repository in other case.
  
  @return String
  repository name
  @throws RepositoryException