code: public static int getFaxJobID(FaxJob faxJob)
      {
          if(faxJob==null)
          {
              throw new FaxException("Fax job not provided.");
          }
  
          //get fax job ID
          String faxJobID=faxJob.getID();
          WindowsFaxClientSpiHelper.validateFaxJobID(faxJobID);
          int faxJobIDInt=Integer.parseInt(faxJobID);
  
          return faxJobIDInt;
      }
docs: This function returns the fax job ID (if valid).
  If fax job ID is not valid, an error will be thrown.
  
  @param   faxJob
  The fax job object
  @return  The fax job ID