logger.debug(String.format("Lease duration requested: %d, granted, expires %s, actual: %d",
duration, formatter.format(new Date(lease.getExpiration())), actual));
}
registrations.put(registrationID, registeredNotification);
leaseListener.register(registeredNotification);
return new Registration((EventCollectorBackend)getServiceProxy(), registrationID, lease);
}