code: public void submitFaxJob(FaxJob faxJob,CommPortAdapter adapter)
      {
          if(faxJob==null)
          {
              throw new FaxException("Fax job not provided.");
          }
  
          if(adapter==null)
          {
              throw new FaxException("COMM port adapter not provided.");
          }
  
          //submit fax job
          this.submitFaxJobImpl(faxJob,adapter);
      }
docs: This function will submit a new fax job.<br>
  The fax job ID may be populated by this method in the provided
  fax job object.
  
  @param   faxJob
  The fax job object containing the needed information
  @param   adapter
  The COMM port adapter