code: public Integer lookup(String entry) {
      if (!data.containsKey(entry)) {
        int oldsize = data.size();
        data.put(entry, data.size() + 1);
        String msg = String.format(
          "new entry: %s (size: %d -> %d)",
          entry, oldsize, data.size()
        );
        if (fileName != null) {
          msg += " " + fileName;
        }
        LOGGER.info(msg);
      }
      return data.get(entry);
    }
docs: Looking for the abbreviated value of a text.
  
  @param entry A key to abbreviate
  @return The abbreviated value