code: public static String getClassName(Object obj) {
          String className = obj.getClass().getName();
          className = className.substring(className.lastIndexOf('.') + 1);
          return className;
      }
docs: For logging/debug, return the last part of the class name of an object