public void setChildren() {
		if (main == null) {
			return;
		}
		if (main.hasChildren()) {
			children = new LinkedList<RSInterface>();
			layers = new LinkedList<RSInterface>();
			for (int index = 0; index < main.children.size(); index++) {
				RSInterface child = RSInterface.getInterface(main.children.get(index));
				if (child.hasChildren()) {
					layers.add(child);
				}
				children.add(child);
			}
		}
	}