code: protected ManageableRepository getWorkingRepository() throws RepositoryException, RepositoryConfigurationException
     {
        return repositoryName != null ? repositoryService.getRepository(repositoryName) : repositoryService
           .getCurrentRepository();
     }
docs: Returns working repository. If repository name is configured then it will be returned
  otherwise the current repository is used.