code: protected FaxJobStatus getFaxJobStatusFromWindowsFaxJobStatusString(String faxJobStatusStr)
      {
          FaxJobStatus faxJobStatus=FaxJobStatus.UNKNOWN;
          if((faxJobStatusStr!=null)&&(faxJobStatusStr.length()>0))
          {
              if((faxJobStatusStr.equalsIgnoreCase("Pending"))||(faxJobStatusStr.equalsIgnoreCase("Paused"))||(faxJobStatusStr.equalsIgnoreCase("Retrying")))
              {
                  faxJobStatus=FaxJobStatus.PENDING;
              }
              else if(faxJobStatusStr.equalsIgnoreCase("In Progress"))
              {
                  faxJobStatus=FaxJobStatus.IN_PROGRESS;
              }
              else if((faxJobStatusStr.equalsIgnoreCase("Failed"))||(faxJobStatusStr.equalsIgnoreCase("No Line"))||(faxJobStatusStr.equalsIgnoreCase("Retries Exceeded")))
              {
                  faxJobStatus=FaxJobStatus.ERROR;
              }
          }
          
          return faxJobStatus;
      }
docs: This function returns the fax job status based on the windows
  fax job status string value.
  
  @param   faxJobStatusStr
  The fax job status string value
  @return  The fax job status