public Room getSelectedRoom() {
		DefaultMutableTreeNode node = (DefaultMutableTreeNode)tree.getSelectionPath().getLastPathComponent();
		
		if (!(node instanceof RoomTreeNode)) {
			node = (DefaultMutableTreeNode) tree.getSelectionPath().getPathComponent(tree.getSelectionPath().getPathCount() - 2);
		}
		
		if (node != null) {
			for (Room room : Rooms.getRooms()) {
				if (room.getLabel().equals(node.toString())) {
					Logger.log("Found room: " + node.toString());
					return room;
				}
			}
		}
		
		return null;
	}