final String type;
if (OMetadata.SYSTEM_CLUSTER.contains(cls.getName()))
type = "SYSTEM TABLE";
else
type = "TABLE";
<BUG>if (tableTypes.contains(type) && (tableNamePattern == null
|| tableNamePattern.equals("%") || tableNamePattern.equalsIgnoreCase(className))) {
</BUG>
final ODocument doc = new ODocument()
.field("TABLE_CAT", database.getName())

final String type;
if (OMetadata.SYSTEM_CLUSTER.contains(cls.getName()))
type = "SYSTEM TABLE";
else
type = "TABLE";
if (tableTypes.contains(type) &&
(tableNamePattern == null || tableNamePattern.equals("%") || tableNamePattern.equalsIgnoreCase(className))) {
final ODocument doc = new ODocument()
.field("TABLE_CAT", database.getName())
