String[] catsFilterArray = catsFilterCommaList.split( "," ); for ( int i = 0; i < catsFilterArray.length; i++ ) { catalogList.add( new Catalog( catsFilterArray[i].trim() ) ); catalogList.add( new Catalog( catalogName ) ); ResultSet catalogTablesResultSet = dbmd.getTables( catalog.getCatalogName(), null, null, null ); while ( catalogTablesResultSet.next() ) { String tableName = catalogTablesResultSet.getString( 3 ); catalog.setItems( catalogTables.toArray( new String[catalogTables.size()] ) );