public void conditionallyExecuteTask(){
  if (conditional.conditionHasOccurred()) {
    try {
      task.run();
    }
 catch (    Throwable t) {
      LOGGER.warn("unexpected error executing conditional task: " + t.getMessage(),t);
    }
  }
}

public void conditionallyExecuteTask ( ) { if ( conditional . conditionHasOccurred ( ) ) { try { task . run ( ) ; } catch ( Throwable t ) { LOGGER . warn ( "unexpected error executing conditional task: " + t . getMessage ( ) , t ) ; } } }
execute the task if the conditional has been met . exceptions when running the task will be logged but not returned .
