void createXML(String xml, int orders, int robots, int shelves,
			int pickers, int maxOrder, int maxStock, boolean randOrder,
			boolean randStock) {
		Warehouse wh = new Warehouse();

		// Creating Orders
		if (orders > 0) {
			this.orders = orders;
			if (maxOrder <= 0) {
				maxOrder = 4;
			}
			Orders x = new Orders(orders, maxOrder, randOrder);
			wh.setOrders(x);
		}
		if (robots > 0) {
			this.robots = robots;
			Robots y = new Robots(robots);
			wh.setRobots(y);
		}
		if (shelves > 0) {
			this.shelves = shelves;
			if (maxStock >= 0) {
				maxStock = 100;
			}
			Shelves z = new Shelves(shelves, maxStock, randStock);
			wh.setShelves(z);
		}
		if (pickers > 0) {
			this.pickers = pickers;
			Pickers w = new Pickers(pickers);
			wh.setPickers(w);
		}
		try {
			JAXBContext jaxbContext = JAXBContext.newInstance(Warehouse.class);
			Marshaller jaxbMarshaller = jaxbContext.createMarshaller();
			jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT,
					Boolean.TRUE);
			File XMLfile = new File("conf/warehouse/" + xml);
			jaxbMarshaller.marshal(wh, XMLfile);
			readXML(xml);
		} catch (JAXBException e) {
			e.printStackTrace();
		}
	}