Overriding an existing PreCondition (ForeignKeyExistsPrecondition)

Hi,

I’m currently in the process of creating an extension for Liquibase to support Cassandra. It’s working pretty well but I want to add some nice-to-have functionality.

When a changeset has a precondition, I want to throw something like a NotSuppportedException() or whatever. Problem is that currently, the underlying JDBC wrapper returns a closed ResultSet which results in an Exception being thrown upon access to said ResultSet.

For Statements, I implemented my own Generators. Is there a similar thing for preconditions? Or a way to override the complete ForeignKeyExistsPrecondition?
Thanks!