private SignatoryShiftDetailsVo findIfShiftDetailsAlreadyRecorded(DailyTimePeriods value, SignatoryShiftDetailsVoCollection signatoryShifts) { // See if this time period is in a configured shift which has already // been instansiated...... DailyTimePeriods timStartTimeTofind = getDailyTimePeriodStartTime(value, form.getLocalContext().getSavedDailyPatternConfig()); if (signatoryShifts != null && signatoryShifts.size() > 0) { for (int i = 0; i < signatoryShifts.size(); i++) { if (signatoryShifts.get(i).getStartTimeIsNotNull() && signatoryShifts.get(i).getStartTime().equals(timStartTimeTofind)) return signatoryShifts.get(i); } } return null; }