code: @Deprecated
      public static String ingestAndCommit(FedoraAPIAMTOM apia,
                                           FedoraAPIMMTOM apim,
                                           InputStream in,
                                           String logMessage)
              throws RemoteException, IOException {
          ByteArrayOutputStream out = new ByteArrayOutputStream();
          StreamUtility.pipeStream(in, out, 4096);
          DataHandler handler = new DataHandler(new ByteArrayDataSource(out.toByteArray(),
          "text/xml"));
          String pid = apim.ingest(handler, METS_EXT1_0.uri, logMessage);
          return pid;
      }
docs: For backward compatibility: assumes format METS_EXT1_0.uri
  
  @deprecated use ingestAndCommit(apia, apim, in, ingestFormat, logMessage)
  instead.