private function tableClass($table)
    {
        $tables = DataObject::getSchema()->getTableNames();
        $class = array_search($table, $tables, true);
        if ($class) {
            return $class;
        }
        return null;
    }