@SuppressWarnings("unchecked")
public static List<Table> findTables(final JdbcTemplate jdbcTemplate, final String catalogName,
final String schemaName, final String tableNamePattern,
final DdlUtilsFilter filter, final DdlTableNameFilter tableNameFilter)
throws Exception {
return (List<Table>) jdbcTemplate.execute(new ConnectionCallback() {
public Object doInConnection(Connection con) throws SQLException, DataAccessException {
List<Table> tables = new ArrayList<Table>();
DatabaseMetaDataWrapper metaData = new DatabaseMetaDataWrapper();