code: public static String getShortClassName(Object o) {
      String name = o.getClass().getName();
      int index = name.lastIndexOf('.');
      if (index >= 0) {
        name = name.substring(index + 1);
      }
      return name;
    }
docs: Returns a short class name for an object.
  This is the class name stripped of any package name.
  
  @return The name of the class minus a package name, for example
  <code>ArrayList</code>