Add the following methods to the whitebox:
1) public int getConstantPoolCacheIndexTag() - returns value of constant ConstantPool::CPCACHE_INDEX_TAG
2) public int getConstantPoolCacheLength(Class<?> aClass) - returns length of constant pool cache length if it exists and "-1" if not.
3) public int remapInstructionOperandFromCPCache(Class<?> aClass, int index) - remaps cp cache index to cp index if cache exists and throws an exception if not.
4) public int encodeConstantPoolIndyIndex(int index) - returns a value given by ConstantPool::encode_invokedynamic_index(index);