class SimpleCatalogManager implements CatalogManager {

    @Override
    public Optional<Distribution> getVersionedDistribution(Resource catalogId, Resource recordId, Resource versionId,
                                                           Resource distributionId) {
        try (RepositoryConnection conn = configProvider.getRepository().getConnection()) {
            Version version = utils.getVersion(catalogId, recordId, versionId, versionFactory, conn);
            if (!version.getVersionedDistribution_resource().contains(distributionId)) {
                return Optional.empty();
            }
            return Optional.of(utils.getExpectedObject(distributionId, distributionFactory, conn));
        }
    }

    public  SimpleCatalogManager();

}