}
if (currentSound != null) {
if (currentSound instanceof AudioInputStream) {
try {
Clip clip = (Clip) AudioSystem.getLine(new Info(Clip.class, ((AudioInputStream) currentSound).getFormat()));
clip.open((AudioInputStream) currentSound);
soundEvents.put(destination, clip);
} catch (LineUnavailableException e1) {
// This will happen if the underlying platform does not support sound
// System.err.println(e1.getMessage());