private static long roundUpTo(long value,
                                long bucket) {
    long fraction = value / bucket;
    long remainder = value % bucket;
    if (remainder > 0) {
      return (fraction + 1) * bucket;
    }
    else {
      return value;
    }
  }
private static long roundUpTo(long value,
                                long bucket)