class GitManager {

    public List<GitRepositoryEntry> getPipelineDocs(Long id, String version)
            throws GitClientException {
        Pipeline pipeline = pipelineManager.load(id);
        try {
            loadRevision(pipeline, version);
        } catch (GitClientException e) {
            LOGGER.error(e.getMessage(), e);
            throw new IllegalArgumentException(e.getMessage());
        }
        return this.getGitlabClientForPipeline(pipeline)
                .getRepositoryContents(docsDirectory, getRevisionName(version), false).stream()
                .filter(e -> !e.getName().startsWith(".")).collect(Collectors.toList());
    }

}