private void setClass( Token token ) {
        Table existingTable = null;
        String value = token.getValue();

        table.setDomName( value );
        table.setTableName( camelToCaps( value ) );

        // if table already exists, stop parsing.
        existingTable = tableMap.get( value );
        if ( existingTable != null ) {
            fStop = true;
            table = existingTable;
            return;
        }
        tableMap.put( value, table );

    }