code: public static String extractPackage(String className) {
  	if (className == null) return null;
  	int index = className.lastIndexOf('.');
  	if (index != -1) return className.substring(0, index);
  	return null;
      }
docs: extracts the package from a className, return null, if there is none.
  
  @param className
  @return