SQLDatabaseMetaData md = session.getSQLConnection().getSQLMetaData();
boolean useSchema = true;
boolean useCatalog = true;
try
{
useCatalog = md.supportsCatalogsInTableDefinitions();
}
catch (SQLException e)
{
log.info("Encountered unexpected exception while attempting to "
+ "determine if catalogs are used in table definitions");