public static void configure(Flyway flyway, Properties properties) throws SQLException {
flyway.setCallbacks(new RepeatableCallback(flyway, properties));
List<MigrationResolver> migrationResolvers = new ArrayList<>();
for (String locationDescriptor : flyway.getLocations()) {
migrationResolvers.add(new RepeatableMigrationResolver(flyway, "R", new Location(locationDescriptor)));
}
flyway.setResolvers(migrationResolvers.toArray(new MigrationResolver[0]));
}