public static void addToolBars(JavaClass jclass, JavaMethod initMethod, Element root, String varName ) throws UnexpectedTag {
		Element tbElement = Parser.getChildElement(root, "toolbars");
		if( tbElement == null ){
			tbElement = Parser.getChildElement(root, "toolbar");
			if( tbElement != null ){
				JToolBarUI ui = addToolBar(jclass, initMethod, tbElement, varName );
				initMethod.addCall( varName + ".add", ui.getName(), JavaClass.toParam( ui.getOrientation()) );
				root.removeChild(tbElement);
			}
		}
		else {
			// Several toolbars to add then we need to use panels...
			// We create 3 panels: noth, west and east
			List<Element> list = Parser.getChildElements(tbElement, "toolbar");
			String[] panels = new String[3];
			for( int i = 0; i < 3; i++ ){
				panels[i] = Parser.addDeclaration( jclass, root, JPanel.class );
				initMethod.addCall(panels[i] + ".setLayout", "new FlowLayout(FlowLayout.LEFT)" );
			}
			
			for( Element e : list ){
				JToolBarUI ui = addToolBar(jclass, initMethod, e, varName );
				if( ui.getOrientation().equals(BorderLayout.NORTH)){
					initMethod.addCall( panels[0] + ".add", ui.getName());
				}
				else if( ui.getOrientation().equals(BorderLayout.WEST)){
					initMethod.addCall( panels[1] + ".add", ui.getName());
				}
				else if( ui.getOrientation().equals(BorderLayout.EAST)){
					initMethod.addCall( panels[2] + ".add", ui.getName());
				}
				else {
					throw new IllegalArgumentException("Bad orientation.");
				}
			}
			
			initMethod.addCall(varName + ".add", panels[0], "BorderLayout.NORTH" );
			initMethod.addCall(varName + ".add", panels[1], "BorderLayout.WEST" );
			initMethod.addCall(varName + ".add", panels[2], "BorderLayout.EAST" );
			
			root.removeChild(tbElement);
		}
	}