The PrepareListener is defined as service so maybe can inject a  boolean parameter from the config instead of checking the instance of the database platform :)