public static ZonedDateTime[] getAdjustedDateSchedule(final ZonedDateTime startDate, final ZonedDateTime endDate, final Period period,
final BusinessDayConvention businessDayConvention, final Calendar calendar, final boolean isEOM, final boolean stubShort) {
boolean eomApply = false;
if (isEOM) {
final BusinessDayConvention following = new FollowingBusinessDayConvention();
eomApply = (following.adjustDate(calendar, startDate.plusDays(1)).getMonth() != startDate.getMonth());
}
// When the end-of-month rule applies and the start date is on month-end, the dates are the last business day of the month.
BusinessDayConvention actualBDC;
final List<ZonedDateTime> adjustedDates = new ArrayList<>();
ZonedDateTime date = startDate;