private int insertCssClass(int delta, Path path, int index, boolean closeAttribute, boolean renderD, String... additionalCssClasses) {
		index++;
		
		if (renderD) {
		    insert(delta, "d='", path, "'");
		}
		
		if (additionalCssClasses != null) {
	        insert(delta, renderD ? " " : "", "class='");
	        boolean firstClass = true;
			for (String cssClass : additionalCssClasses) {
			    if (!firstClass) {
			        insert(delta, " ");
			    } else {
			        firstClass = false;
			    }
				if (cssClass != null) {
					insert(delta, cssClass);
				}
			}
		}
		if (closeAttribute) {
			insert(delta, "'");
		}
		return index;
	}