//can be null if it was rescheduled
if (lockExpirationDate != null) {
long lockExpiration = lockExpirationDate.getTime();
long currentTime = System.currentTimeMillis();
if (currentTime>lockExpiration) {
throw new PvmException("job took too long: lock expired "+(currentTime-lockExpiration)+"ms ago");
}
}
} catch (Throwable exception) {
log.log(Level.SEVERE, "exception while executing '"+job+"'", exception);
handleJobExecutionException(environment, job, exception);