int days; if (level6Horizon.getValue().equals (LEVEL_6_MIN)) { days = LEVEL_6_MIN.intValue(); } else if (level6Horizon.getValue().equals (LEVEL_6_MID)){ days = LEVEL_6_MID.intValue(); } else if (level6Horizon.getValue().equals (LEVEL_6_21)){ days = LEVEL_6_21.intValue(); } else {  days = LEVEL_6_MAX.intValue(); }
int days = ((Integer)level6Horizon.getValue()).intValue();
  protected long getEndOfLevelSix () {    long now = currentTimeMillis();    int days;    if (level6Horizon.getValue().equals (LEVEL_6_MIN)) {      days = LEVEL_6_MIN.intValue();    } else if (level6Horizon.getValue().equals (LEVEL_6_MID)){      days = LEVEL_6_MID.intValue();    } else if (level6Horizon.getValue().equals (LEVEL_6_21)){      days = LEVEL_6_21.intValue();    } else {      //use all level 6 as the default      days = LEVEL_6_MAX.intValue();    }    // int days = (level6Horizon.getValue().equals (LEVEL_6_MIN))?//       LEVEL_6_MIN.intValue() : LEVEL_6_MID.intValue() : LEVEL_6_MAX.intValue();        return timeUtils.addNDays(now, days);  } 