First use either dbs.tableLayoutFromFile(filename) or dbs.tableLayoutFromString(dbsString) function to create the dbs object befor main() and then use the getTableSet on the object from main().
dbs.tableLayoutFromFile(filename)
dbs.tableLayoutFromString(dbsString)