public static Enumeration getClassesAndPackages(final String packageName) {
		final Enumeration enum_ = classpath.listFiles(packageName.replace('.',
				'/'));
		return new Enumeration() {
			public boolean hasMoreElements() {
				return enum_.hasMoreElements();
			}

			public Object nextElement() {
				String name = (String) enum_.nextElement();
				if (!name.endsWith(".class"))
					// This is a package
					return name;
				return name.substring(0, name.length() - 6);
			}
		};
	}