if (debug) { System.err.println("Adding " + element + " to " + key + " for " + p); }
    public int add(KEY key, FreerailsSerializable element, FreerailsPrincipal p) {        if (debug) {            System.err.println("Adding " + element + " to " + key + " for " +                p);        }        if (key == KEY.PLAYERS) {            return addPlayer((Player)element, p);        }        if (key.shared) {            lists[key.getKeyNumber()].add(element);            return size(key, Player.NOBODY) - 1;        }        ((ArrayList)lists[key.getKeyNumber()].get(getPlayerIndex(p))).add(element);        return size(key, p) - 1;    }