class IntegrityValidator {

    public void validateNodeRecord( NodeRecord record ) throws TransactionFailureException
    {
        if ( !record.inUse() && record.getNextRel() != Record.NO_NEXT_RELATIONSHIP.intValue() )
        {
            throw new ConstraintViolationTransactionFailureException(
                    "Cannot delete node<" + record.getId() + ">, because it still has relationships. " +
                    "To delete this node, you must first delete its relationships." );
        }
    }

    public  IntegrityValidator( NeoStores neoStores, IndexingService indexes );

}