events.add(vEvent);
current.add(java.util.Calendar.WEEK_OF_YEAR, 1);
if (++paranoiaCounter > 500) {
log.warn("Dear developer, please have a look here, paranoiaCounter exceeded! Aborting calculation of weeks of year.");
}
} while (current.before(to) == true);
}
// Integer hrPlanningUserId = NumberHelper.parseInteger(params.get(PARAM_NAME_HR_PLANNING));
// if (hrPlanningUserId != null) {
// if (loggedInUser.getId().equals(hrPlanningUserId) == false && isOtherUsersAllowed() == false) {
// // Only project managers, controllers and administrative staff is allowed to subscribe time-sheets of other users.