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