String nameString = t.getValue();
Debug.log(Debug.TRACE,"NameDefinitionEncoder : " + nameString);
tmpByteArray.add(new Byte((byte)t.getTokenID()));
Enumeration e = wb.getDefinedNames();
DefinedName dn;
String name;
int definedNameIndex = 0;
do {
dn = (DefinedName)e.nextElement();
name = dn.getName();
Debug.log(Debug.TRACE,"Name pulled from DefinedName : " + name);
definedNameIndex++;
} while(!nameString.equalsIgnoreCase(name) && e.hasMoreElements());
tmpByteArray.add(new Byte((byte)definedNameIndex));