code: public static Priority getInstance(int priority)
     {
        Priority result;
  
        if (priority >= LOWEST && priority <= DO_NOT_LEVEL && (priority % 100 == 0))
        {
           result = VALUE[(priority / 100) - 1];
        }
        else
        {
           result = new Priority(priority);
        }
  
        return (result);
     }
docs: This method takes an integer enumeration of a priority
  and returns an appropriate instance of this class. Note that unrecognised
  values are treated as medium priority.
  
  @param priority int version of the priority
  @return Priority class instance