class SimpleCatalogManager implements CatalogManager {

    @Override
    public Optional<Distribution> getUnversionedDistribution(Resource catalogId, Resource unversionedRecordId,
                                                             Resource distributionId) {
        try (RepositoryConnection conn = configProvider.getRepository().getConnection()) {
            UnversionedRecord record = utils.getRecord(catalogId, unversionedRecordId, unversionedRecordFactory, conn);
            if (!record.getUnversionedDistribution_resource().contains(distributionId)) {
                return Optional.empty();
            }
            return Optional.of(utils.getExpectedObject(distributionId, distributionFactory, conn));
        }
    }

    public  SimpleCatalogManager();

}