public NameRecord createBuiltInName(byte builtInName, int sheetNumber) {if (sheetNumber < 0 || sheetNumber+1 > Short.MAX_VALUE) {throw new IllegalArgumentException("Sheet number ["+sheetNumber+"]is not valid ");}NameRecord name = new NameRecord(builtInName, sheetNumber);if(linkTable.nameAlreadyExists(name)) {throw new RuntimeException("Builtin (" + builtInName+ ") already exists for sheet (" + sheetNumber + ")");}addName(name);return name;}

public NameRecord CreateBuiltInName(byte builtInName, int index){if (index == -1 || index + 1 > short.MaxValue)throw new ArgumentException("Index is not valid [" + index + "]");NameRecord name = new NameRecord(builtInName, (short)(index));AddName(name);return name;}
