public String retrieveTemplate(String catalogLink, String templateName) throws Exception{
		String response = doGet(catalogLink);
		String catalogItemLink = findElement(response, Constants.CATALOGITEM, Constants.CATALOGITEM_LINK, templateName);
		
		response = doGet(catalogItemLink);
		String element = findElement(response, Constants.ENTITY, Constants.TEMPLATE_LINK, templateName);
		if( element == null){
			throw new Exception("No vApp template found that matches the given name: " + templateName);
		}
		return element;
	}