if (dict == null){
Iterator<StringName> it = allDefs.keySet().iterator();
int id = Token.CUSTOM+1;
StringName key = null;
dict = new Dictionary();
while(it.hasNext()){
key = (StringName)it.next();
dict.add(new Token(key.getNameString(),id++,allDefs.get(key)));
}
}