}
private ISet getTablesOrViews(IConstructor connection, String[] tableTypes) {
// TODO: Add code to check and make sure the table types are valid
try {
IInteger connectionId = (IInteger) connection.get(0);
if (connectionMap.containsKey(connectionId)) {
Connection conn = connectionMap.get(connectionId);
DatabaseMetaData dmd = conn.getMetaData();
ResultSet rs = dmd.getTables(null, null, null, tableTypes);
HashSet<String> tables = new HashSet<String>();