public void export(PrintWriter out, boolean descend)
			throws NoSuchKeyException, RegistryException {
		Enumeration enumeration;

		out.println("[" + this.getFullName() + "]");

		enumeration = this.valueElements();

		for (int idx = 0; enumeration.hasMoreElements(); ++idx) {
			String valueName = (String) enumeration.nextElement();

			RegistryValue value = this.getValue(valueName);

			value.export(out);
		}

		out.println();

		if (descend) {
			enumeration = this.keyElements();

			for (int idx = 0; enumeration.hasMoreElements(); ++idx) {
				String keyName = (String) enumeration.nextElement();

				RegistryKey subKey = this.openSubKey(keyName);

				subKey.export(out, descend);

				subKey.closeKey();
			}
		}
	}