if (!tableName.endsWith(quote)) {
throw new IllegalStateException("Mismatched quote in table name: " + tableName);
}
int quoteLength = quote.length();
tableName = tableName.substring(quoteLength, tableName.length() - quoteLength);
if (dmd.storesLowerCaseQuotedIdentifiers()) {
tableName = toLowerCase(tableName);
} else if (dmd.storesUpperCaseQuotedIdentifiers()) {
tableName = toUpperCase(tableName);
}
} else {