/** Handles the 'previous' event and returns the result. */
 public Resolution previous() {
   JSONMediaPlayerStatus status = new JSONMediaPlayerStatus(DBusMediaPlayer.previous(playerId));
   String jsonText = status.JSONStatus();
   return new StreamingResolution("text", new StringReader(jsonText));
 }
 /** Handles the 'status' event and returns the result. */
 @DefaultHandler
 public Resolution status() {
   JSONMediaPlayerStatus jsonStatus = DBusMediaPlayer.getJSONStatus(playerId);
   String jsonText = jsonStatus.JSONStatus().toString();
   return new StreamingResolution("text", new StringReader(jsonText));
 }