code: public void writeResult(Map<BioPAXElement, List<Match>> matches, OutputStream out)
  		throws IOException
  	{
  		OutputStreamWriter writer = new OutputStreamWriter(out);
  
  		for (BioPAXElement ele : matches.keySet())
  		{
  			Set<String> syms = new HashSet<String>();
  
  			for (Match m : matches.get(ele))
  			{
  				ProteinReference pr = (ProteinReference) m.get("PR", getPattern());
  
  				String sym = getGeneSymbol(pr);
  				if (sym != null) syms.add(sym);
  			}
  
  			if (syms.size() > 1)
  			{
  				writer.write("\n" + ele.getUri());
  
  				for (Object o : controlAcc.getValueFromBean(ele))
  				{
  					Control ctrl = (Control) o;
  					writer.write(" " + ctrl.getUri());
  				}
  
  				for (String sym : syms)
  				{
  					writer.write("\t" + sym);
  				}
  			}
  		}
  		writer.flush();
  	}
docs: Writes the IDs of interaction, then gene symbols of related proteins in a line.
  @param matches pattern search result
  @param out output stream