statement = connection.createStatement();
statement.execute(sqlStatement);
}
catch (Exception e)
{
throw new ScriptExecutionException("Unable to execute statement: " + sqlStatement, e);
}
finally
{
if (statement != null)
{
try
{
statement.close();
}
catch (SQLException e)
{
throw new ScriptExecutionException("Unable to close statement after script execution.", e);
}
}
}
}