public class ToolBarRendererBase extends HeaderResourcesRendererBase {
public void encodeChildren(FacesContext facesContext, UIComponent component) throws IOException {
UIToolBar toolBar = (UIToolBar) component;
List children = toolBar.getChildren();
String contentClass = (String) toolBar.getAttributes().get("contentClass");
if (null == contentClass) contentClass = "";
String contentStyle = (String) toolBar.getAttributes().get("contentStyle");
if(children != null){
List childrenToTheLeft = new LinkedList();
List childrenToTheRight = new LinkedList();
for (Iterator iter = children.iterator(); iter.hasNext();) {
UIComponent child = (UIComponent) iter.next();