}
private CloseableLiquibase openLiquibase(final DataSourceFactory dataSourceFactory, final Namespace namespace)
throws SQLException, LiquibaseException {
final CloseableLiquibase liquibase;
final ManagedDataSource dataSource = dataSourceFactory.build(new MetricRegistry(), "liquibase");
final String migrationsFile = namespace.getString("migrations-file");
if (migrationsFile == null) {
liquibase = new CloseableLiquibase(dataSource);
} else {