code: public void writeObject(Writer out, BioPAXElement bean) throws IOException
  	{
  		String name = "bp:" + bean.getModelInterface().getSimpleName();
  		writeIDLine(out, bean, name);
  
  		Set<PropertyEditor> editors = editorMap.getEditorsOf(bean);
  		if (editors == null || editors.isEmpty())
  		{
  			log.info("no editors for " + bean.getUri() + " | " + bean.getModelInterface().getSimpleName());
  			out.write(newline + "</" + name + ">");
  			return;
  		}
  
  		for (PropertyEditor editor : editors)
  		{
  			Set value = editor.getValueFromBean(bean); //is never null
  			for (Object valueElement : value)
  			{
  				if (!editor.isUnknown(valueElement)) writeStatementFor(bean, editor, valueElement, out);
  			}
  		}
  
  		out.write(newline + "</" + name + ">");
  	}
docs: Writes the XML representation of individual BioPAX element that
  is BioPAX-like but only for display or debug purpose (incomplete).
  
  Note: use {@link BioPAXIOHandler#convertToOWL(org.biopax.paxtools.model.Model, java.io.OutputStream)}
  convertToOWL(org.biopax.paxtools.model.Model, Object)} instead
  if you have a model and want to save and later restore it.
  @param out output
  @param bean BioPAX object
  @throws IOException when the output writer throws