System.out.println("There was an error: " + ioe.getMessage());
System.out.println("Error Adding asset: " + ioe.getMessage()); ioe.printStackTrace();
	public void addAsset(AssetTreeNode parent, String typeCode, int index) {				String parentAssetid = MatrixToolkit.rawUrlEncode(				parent.getAsset().getId(), true);		String xml = "<command action=\"get url\" cmd=\"add\" " 			+ "parent_assetid=\"" + parentAssetid			+ "\" pos=\"" + index + "\" type_code=\""+ typeCode + "\" />";				Document response = null;				try {			response = MySource.INSTANCE.doRequest(xml);		} catch (IOException ioe) {			System.out.println("There was an error: " + ioe.getMessage());		}		if (response == null)			return;					NodeList children = response.getDocumentElement().getChildNodes();		String url = getUrlFromResponse(children);				try {			AssetMap.getUrl(new URL(url));		} catch (MalformedURLException mue) {		}	}