public Export(RSInterface main) {
		if (main == null) {
			JOptionPane.showMessageDialog(null, "This is not a valid interface!");
			return;
		}
		this.main = main;
		setChildren();
		if (layers != null && !layers.isEmpty()) {
			setSubChildren();
		}
		if (subchildren != null && !subchildren.isEmpty()) {
			setSubSubChildren();
		}
		export();
	}