code: public static Map.Entry<String, Map<String, ?>> lockDeviceCommand(Duration duration) {
          return new AbstractMap.SimpleEntry<>(
                  LOCK, prepareArguments("seconds", duration.getSeconds()));
      }
docs: This method forms a {@link java.util.Map} of parameters for the
  device locking.
  
  @param duration for how long to lock the screen for. Minimum time resolution is one second
  @return a key-value pair. The key is the command name. The value is a
  {@link java.util.Map} command arguments.