code: static String getClassSimpleName(String className) {
      int lastPeriod = className.lastIndexOf(".");
      if (lastPeriod != -1) {
        return className.substring(lastPeriod + 1);
      }
      return className;
    }
docs: Fake Class#getSimpleName logic.