code: final int resolveNameIndex(CharSequence name)
      {
          int size = 0;
          int index = 0;
          constantReadLock.lock();
          try
          {
              size = getConstantPoolSize();
              index = getNameIndex(name);
          }
          finally
          {
              constantReadLock.unlock();
          }
          if (index != -1)
          {
              return index;
          }
          else
          {
              return addConstantInfo(new Utf8(name), size);
          }
      }
docs: Returns the constant map index to name
  If entry doesn't exist it is created.
  @param name
  @return