code: public String toXML(boolean hasResult) throws IOException{
  		StringWriter swriter = new StringWriter();
  
  		PrintWriter writer = new PrintWriter(swriter);
  		PrettyXMLWriter xml = new PrettyXMLWriter(writer);
  
  		xml.openTag("alignment");
  		xml.attribute("hasResult", String.valueOf(hasResult));
  		xml.closeTag("alignment");
  		xml.close();
  		return swriter.toString();
  	}
docs: return flag if the server has a result
  
  @param hasResult
  @return flag if there is a result