/** * Define the package information associated with a class. * * @param className the class name of for which the package information * is to be determined. */ protected void definePackage(String className){ int classIndex = className.lastIndexOf('.'); if (classIndex == -1) { return; } String packageName = className.substring(0, classIndex); if (getPackage(packageName) != null) { return; } definePackage(packageName, null, null, null, null, null, null, null); } }