code: private String getDeviceName(String eventName) {
          int pos = eventName.lastIndexOf('.');
          return eventName.substring(0, pos);
      }
docs: ===============================================================