private boolean excludeSchema(Schema schema) { if (schemaNames != null && !schemaNames.contains(schema.getName())) { return true; } if (tables != null) { // if filtering on specific tables, only include those schemas for (Table table : schema.getAllTablesAndViews()) { if (tables.contains(table)) { return false; } } return true; } return false; }