public ExpiryTask addExpiryTask(ExpiryTask task){
  try {
    if (logger.isTraceEnabled()) {
      logger.trace(LocalizedMessage.create(LocalizedStrings.ExpirationScheduler_SCHEDULING__0__TO_FIRE_IN__1__MS,new Object[]{task,Long.valueOf(task.getExpiryMillis())}));
    }
    timer.schedule(task,task.getExpiryMillis());
  }
 catch (  EntryNotFoundException e) {
    return null;
  }
catch (  IllegalStateException e) {
    return null;
  }
  return task;
}

public ExpiryTask addExpiryTask ( ExpiryTask task ) { try { if ( logger . isTraceEnabled ( ) ) { logger . trace ( LocalizedMessage . create ( LocalizedStrings . ExpirationScheduler_SCHEDULING__0__TO_FIRE_IN__1__MS , new Object [ ] { task , Long . valueOf ( task . getExpiryMillis ( ) ) } ) ) ; } timer . schedule ( task , task . getExpiryMillis ( ) ) ; } catch ( EntryNotFoundException e ) { return null ; } catch ( IllegalStateException e ) { return null ; } return task ; }
schedules the given expiration task
