if (migrationFile == null) {
throw new IllegalArgumentException("database.migrationFile must be set in order to run database migration.");
}
try {
UrsusJDBCDataSource ursusJDBCDataSource = new UrsusJDBCDataSource(ursusJDBCConfiguration);
Database database = DatabaseFactory.getInstance().findCorrectDatabaseImplementation(new JdbcConnection(ursusJDBCDataSource.getConnection()));
Liquibase liquibase = new Liquibase(migrationFile, new ClassLoaderResourceAccessor(), database);
Liquibase_Command liquibaseCommand = Liquibase_Command.valueOf(command.toLowerCase());
if (liquibaseCommand.equals(Liquibase_Command.dropall))