public boolean parseDocumentToVerifyRelevance(String name, Double relevanceThresh){
    	
    	
    	Element el = doc.getDocumentElement();
    	
		NodeList nl = el.getElementsByTagName("entity");
		
		if(nl != null && nl.getLength() > 0) {
			for(int i = 0 ; i < nl.getLength();i++) {

				//get the entity element
				Element elem = (Element)nl.item(i);
	
				String entityName = getTextValue(elem, "text");
				Double entityRelevance = getDoubleValue(elem, "relevance");
				
				
    if (entityName.toLowerCase().contains("microsoft") && entityRelevance > relevanceThresh)	
			return true;	
    }
			
		}
		
		return false;
    }