docs: public static String getPackageName(String className, boolean resource)
     {
         String packageName = null;
         if (className != null)
         {
         	if (resource)
         		if (className.endsWith(PROPERTIES))
         			className = className.substring(0, className.length() - PROPERTIES.length());
             if (className.lastIndexOf('.') != -1)
                 packageName = className.substring(0, className.lastIndexOf('.'));
         }
         return packageName;
     }