class SimpleCatalogUtilsService implements CatalogUtilsService {

    @Override
    public void validateRecord(Resource catalogId, Resource recordId, IRI recordType,
                               RepositoryConnection conn) {
        validateResource(catalogId, vf.createIRI(Catalog.TYPE), conn);
        validateResource(recordId, recordType, conn);
        if (!conn.getStatements(recordId, vf.createIRI(Record.catalog_IRI), catalogId).hasNext()) {
            throw throwDoesNotBelong(recordId, recordFactory, catalogId, catalogFactory);
        }
    }

}