class SimpleCatalogManager implements CatalogManager {

    @Override
    public <T extends Branch> Optional<T> getBranch(Resource catalogId, Resource versionedRDFRecordId,
                                                    Resource branchId, OrmFactory<T> factory) {
        try (RepositoryConnection conn = configProvider.getRepository().getConnection()) {
            VersionedRDFRecord record = utils.getRecord(catalogId, versionedRDFRecordId, versionedRDFRecordFactory,
                    conn);
            if (!record.getBranch_resource().contains(branchId)) {
                return Optional.empty();
            }
            return Optional.of(utils.getExpectedObject(branchId, factory, conn));
        }
    }

    public  SimpleCatalogManager();

}