code: public static Day getDay(Integer day)
     {
        Day result = null;
        if (day != null)
        {
           result = DAY_ARRAY[day.intValue()];
        }
        return (result);
     }
docs: Convert MPX day index to Day instance.
  
  @param day day index
  @return Day instance