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