protected long getStartOfPeriod() { long timeIn = getCurrentTimeMillis();
protected long getStartOfPeriod(long timeIn) {
  protected long getStartOfPeriod() {    long timeIn = getCurrentTimeMillis();    //truncate to the whole number that represents the period num since the start of time.    long periods = (long) (timeIn / period);    //Multiply it back to which gives the start of the period.    long timeOut = periods * period;    if (timeIn == timeOut) {      if(logger.isDebugEnabled()) {        logger.debug("GetStartOfToday - unexpected timeIn==timeOut==" + new Date(timeOut));      }    }    return timeOut;  }