}
public static class Calc extends RoundDateCalculator {
private static final long serialVersionUID = -5893918049538006730L;
@Override
protected LocalDateTime adjust(final LocalDateTime dateTime) {
<BUG>LocalDateTime result = dateTime.withDayOfYear(1);
</BUG>
if (dateTime.isAfter(result.plusMonths(6))) {
result = result.plusYears(1);
}

}
@Override
protected RoundCalculator getCalculator() {
return CALC;
}
public static class Calc extends RoundDateCalculator {
private static final long serialVersionUID = -5893918049538006730L;
@Override
protected LocalDateTime adjust(final LocalDateTime dateTime) {
LocalDateTime result = dateTime.toLocalDate().withDayOfYear(1).atStartOfDay();
if (dateTime.isAfter(result.plusMonths(6))) {
result = result.plusYears(1);
}
