code: private String formatPriority(Priority value)
     {
        String result = null;
  
        if (value != null)
        {
           String[] priorityTypes = LocaleData.getStringArray(m_locale, LocaleData.PRIORITY_TYPES);
           int priority = value.getValue();
           if (priority < Priority.LOWEST)
           {
              priority = Priority.LOWEST;
           }
           else
           {
              if (priority > Priority.DO_NOT_LEVEL)
              {
                 priority = Priority.DO_NOT_LEVEL;
              }
           }
  
           priority /= 100;
  
           result = priorityTypes[priority - 1];
        }
  
        return (result);
     }
docs: This method is called to format a priority.
  
  @param value priority instance
  @return formatted priority value