Date d = new Date();
  public void incNoOfTimesPlayed() {    synchronized (this) {      elt.setAttribute("played", Integer.toString(getNoOfTimesPlayed() + 1));      Date d = new Date();      try {        elt.setAttribute("last", new SimpleDateFormat().format(d));      }       catch(Exception e) {        e.printStackTrace();      }     }  }