code: public String getName() {
  
          String name = device.getName();
          try {
              flush();
          } catch (Exception e) {
              new RuntimeException(e);
          }
          return name;
      }
docs: {@inheritDoc}