docs: public static boolean isConsistent(String eventDate, String year, String month, String day) {
      	boolean result = false;
      	StringBuffer date = new StringBuffer();
      	if (!isEmpty(eventDate)) {
      		if (!isEmpty(year) && !isEmpty(month) && !isEmpty(day)) { 
      			date.append(year).append("-").append(month).append("-").append(day);
      			if (!isRange(eventDate)) { 
      				DateMidnight eventDateDate = extractDate(eventDate);
      				DateMidnight bitsDate = extractDate(date.toString());
      				if (eventDateDate!=null && bitsDate !=null) { 
      					if (eventDateDate.year().compareTo(bitsDate)==0 && eventDateDate.monthOfYear().compareTo(bitsDate)==0 && eventDateDate.dayOfMonth().compareTo(bitsDate)==0) {
      						result = true;   
      					}	   
      				}
      			} else {
      				Interval eventDateDate = extractDateInterval(eventDate);
      				DateMidnight bitsDate = extractDate(date.toString());
      				if (eventDateDate!=null && bitsDate !=null) { 
      					if (eventDateDate.getStart().year().compareTo(bitsDate)==0 && eventDateDate.getStart().monthOfYear().compareTo(bitsDate)==0 && eventDateDate.getStart().dayOfMonth().compareTo(bitsDate)==0) {
      						result = true;   
      					}	   
      				}    				
      				
      			}
      		}
      		if (!isEmpty(year) && !isEmpty(month) && isEmpty(day)) { 
      			date.append(year).append("-").append(month);
      			Interval eventDateInterval = extractDateInterval(eventDate);
      			Interval bitsInterval = extractDateInterval(date.toString());
      			if (eventDateInterval.equals(bitsInterval)) {
      				result = true;
      			}
      		}    	
      		if (!isEmpty(year) && isEmpty(month) && isEmpty(day)) { 
      			date.append(year);
      			Interval eventDateInterval = extractDateInterval(eventDate);
      			Interval bitsInterval = extractDateInterval(date.toString());
      			if (eventDateInterval.equals(bitsInterval)) {
      				result = true;
      			}
      		}    		
      	} else { 
      		if (isEmpty(year) && isEmpty(month) && isEmpty(day)) {
      			// eventDate, year, month, and day are all empty, treat as consistent.
      			result = true;
      		}
      	}
          return result;
      }