code: public static final BigInteger printPriority(Priority priority)
     {
        int result = Priority.MEDIUM;
  
        if (priority != null)
        {
           result = priority.getValue();
        }
  
        return (BigInteger.valueOf(result));
     }
docs: Print priority.
  
  @param priority Priority instance
  @return priority value