class SimpleCatalogManager implements CatalogManager {

    @Override
    public <T extends Version> Optional<T> getLatestVersion(Resource catalogId, Resource versionedRecordId,
                                                            OrmFactory<T> factory) {
        try (RepositoryConnection conn = configProvider.getRepository().getConnection()) {
            VersionedRecord record = utils.getRecord(catalogId, versionedRecordId, versionedRecordFactory, conn);
            return record.getLatestVersion_resource().flatMap(resource ->
                    Optional.of(utils.getExpectedObject(resource, factory, conn)));
        }
    }

    public  SimpleCatalogManager();

}