while (beingProcessed.equals(track)) {
while (beingProcessed != null && beingProcessed.equals(track)) {
  public void killProcessing(Track track)  {    synchronized (getMutex()) {      removeFromQueue(track);      while (beingProcessed.equals(track)) {        toKillProcessing = true;        try {getMutex().wait();} catch (InterruptedException e) {}      }    }  }