code: private static String getClassName(Class<?> clazz) {
  		String name = clazz.getSimpleName();
  		int dotPos = name.lastIndexOf('.');
  		return dotPos==-1 ? name : name.substring(dotPos+1);
  	}
docs: Gets the class name (without package) for the given class.