public class ClockInterval extends PersistentEntity {
static public ClockInterval getClockInterval(long id) throws HttpException {
ClockInterval interval = (ClockInterval) Hiber.session().get(
ClockInterval.class, id);
if (interval == null) {
throw new NotFoundException();
}
return interval;
}