int index) {
int index, String[] parentIds) {
	private static String generateCreateLinkXML(		String linkType,		String toParentId,		MatrixTreeNode[] children,		int index) {			StringBuffer xml = new StringBuffer();			xml.append("<command action=\"").append(linkType).append("\"");			xml.append(" to_parent_assetid=\"").append(toParentId).append("\"");			xml.append(" to_parent_pos=\"").append(index).append("\">");			for (int i = 0; i < children.length; i++) {				String assetid  = MatrixToolkit.rawUrlEncode(children[i].getAsset().getId(), true);				String linkid   = children[i].getLinkid();				String parentid = MatrixToolkit.rawUrlEncode(					((MatrixTreeNode) children[i].getParent()).getAsset().getId(),					true				);				xml.append("<asset assetid=\"").append(assetid).append("\" ");				xml.append(" linkid=\"").append(linkid).append("\" ");				xml.append(" parentid=\"").append(parentid).append("\" />");			}			xml.append("</command>");		return xml.toString();	}