* Be tolerant - we can treat such case as an empty range, which is a similar
* approach to what JDK does for Rectangle width and height. We will log with
* TemporalPrimitive as the source class, since it is the closest we can get
* to a public API.
*/
final Context context = Context.current();
final LogRecord record = Errors.getResources(context != null ? context.getLocale() : null)
.getLogRecord(Level.WARNING, Errors.Keys.IllegalRange_2, begin, end);
record.setSourceClassName(TemporalPrimitive.class.getName());
record.setSourceMethodName("setTimePeriod");
Context.warningOccured(context, this, record);
} else try {