code: static String statusToString(int status)
      {
          String result = null;
  
          if (status == STATUS_INACTIVE)
          {
              result = "INACTIVE";
          }
          else if (status == STATUS_ACTIVE)
          {
              result = "ACTIVE";
          }
          else if (status == STATUS_KEYPOINTING)
          {
              result = "KEYPOINTING";
          }
          else if (status == STATUS_INVALID)
          {
              result = "INVALID";
          }
          else
          {
              result = "UNKNOWN";
          }
  
          return result;
      }
docs: Utility method to convert a numerical status into a printable string form.
  
  @param status The status to convert
  
  @return String A printable form of the status ("ACTIVE","INACTIVE","KEYPOINTING", "INVALID" or "UNKNOWN")