public Epoch createEpoch(ServerViewController recManager){
  epochsLock.lock();
  Set<Integer> keys=epochs.keySet();
  int max=-1;
  for (  int k : keys) {
    if (k > max)     max=k;
  }
  max++;
  Epoch epoch=new Epoch(recManager,this,max);
  epochs.put(max,epoch);
  epochsLock.unlock();
  return epoch;
}

public Epoch createEpoch ( ServerViewController recManager ) { epochsLock . lock ( ) ; Set < Integer > keys = epochs . keySet ( ) ; int max = - 1 ; for ( int k : keys ) { if ( k > max ) max = k ; } max ++ ; Epoch epoch = new Epoch ( recManager , this , max ) ; epochs . put ( max , epoch ) ; epochsLock . unlock ( ) ; return epoch ; }
creates a epoch associated with this consensus , supposedly the next
