public String getClassString(ClassInfo clazz) {
		String name = clazz.getName();
		if (cachedClassNames == null)
			/* We are not yet clean, return the full name */
			return name;

		/* First look in our cache. */
		String cached = (String) cachedClassNames.get(name);
		if (cached != null)
			return cached;

		int pkgdelim = name.lastIndexOf('.');
		if (pkgdelim != -1) {

			String pkgName = name.substring(0, pkgdelim);

			Integer i;
			if (pkgName.equals(pkg)
					|| (imports.get(pkgName + ".*") != null && !conflictsImport(name))) {
				String result = name.substring(pkgdelim + 1);
				cachedClassNames.put(name, result);
				return result;
			}
		}
		cachedClassNames.put(name, name);
		return name;
	}