public void delete(JobNotification currentNotification){
  for (int i=notifications.size(); --i >= 0; ) {
    if (notifications.get(i) == currentNotification) {
      notifications.remove(i);
      break;
    }
  }
}

public void delete ( JobNotification currentNotification ) { for ( int i = notifications . size ( ) ; -- i >= 0 ; ) { if ( notifications . get ( i ) == currentNotification ) { notifications . remove ( i ) ; break ; } } }
deletes the script group from the workload . this does not persist the changes to the database .
