code: public void convert(InputStream inputStream, OutputStream outputStream, 
  			boolean forceInteractionToComplex) throws IOException, PsimiXmlReaderException {
  
  		// check args
  		if (inputStream == null || outputStream == null) {
  			throw new IllegalArgumentException("convert(): " +
  					"one or more null arguments.");
  		}
  
  		// unmarshall the data, close the stream
  		PsimiXmlReader reader = new PsimiXmlReader();
  		EntrySet entrySet = reader.read(inputStream);
  		inputStream.close();
  		
  		// convert
  		convert(entrySet, outputStream, forceInteractionToComplex);
  	}
docs: Converts the PSI-MI inputStream into BioPAX outputStream.
  Streams will be closed by the converter.
  
  Warning: for very large models (about 1-2Gb if serialized), and when ByteArrayOutputStream
  is used, OutOfMemoryError might be thrown (increasing the "heap" RAM won't help; but using FileOutputStream will).
  
  @param inputStream PSI-MI
  @param outputStream BioPAX
  @param forceInteractionToComplex - always generate Complex instead of MolecularInteraction
  
  @throws IOException when an I/O error occur
  @throws PsimiXmlReaderException when an error in the PSI-MI parser happens