private void setInitialPosition(XMLDocument doc) {
		
		int start = 40;
		if (doc.getProviders() != null) {
			for (XMLElement elem : doc.getProviders()) {
				int height = 28 + XMLElementManipulator.getBuses(elem).size() * 28;
				Rectangle layout = new Rectangle(2, start, 300, height);
				start = start + height + 8;
				elem.setRectangle(layout);
			}
		}
		
		
		start = 40;
		if (doc.getServices() != null) {
			for (XMLElement elem : doc.getServices()) {
				//TODO set correct height (how many actions) 
				int height = 50;
				Rectangle layout = new Rectangle(400, start, 200, height);
				start = start + height + 15;
				elem.setRectangle(layout);
			}
		}
	}