private String getVmRef( String vmName) throws ConnectorException{
		String vmSearch = doGet(apiLink + Utils.VMS_QUERY_SUFFIX);
		
		Document doc = RestClient.stringToXmlDocument(vmSearch);
		NodeList list = doc.getElementsByTagName(Constants.VM_RECORD);
		
		for(int i=0; i < list.getLength(); i++){
			if(list.item(i).getAttributes().getNamedItem(Constants.NAME).getTextContent().trim().equalsIgnoreCase(vmName)) 
			{
				return list.item(i).getAttributes().getNamedItem(Constants.HREF).getTextContent().trim();
			}
		}
		
		throw new ConnectorException("The following Vm is not being found or is corrupted: " + vmName);
	}