code: static String shortName(String className) {
      int startPos = className.lastIndexOf('.');
      if (startPos == -1) {
        return className;
      }
      return className.substring(startPos + 1);
    }
docs: Trim off package to return the simple class name.