code: protected Map getDeviceTokenResponseModel(final OAuth20AccessTokenResponseResult result) {
          val model = new LinkedHashMap<String, Object>();
          val uri = result.getCasProperties().getServer().getPrefix()
              .concat(OAuth20Constants.BASE_OAUTH20_URL)
              .concat("/")
              .concat(OAuth20Constants.DEVICE_AUTHZ_URL);
          model.put(OAuth20Constants.DEVICE_VERIFICATION_URI, uri);
          model.put(OAuth20Constants.EXPIRES_IN, result.getDeviceTokenTimeout());
          val generatedToken = result.getGeneratedToken();
          generatedToken.getUserCode().ifPresent(c -> model.put(OAuth20Constants.DEVICE_USER_CODE, c));
          generatedToken.getDeviceCode().ifPresent(c -> model.put(OAuth20Constants.DEVICE_CODE, c));
          model.put(OAuth20Constants.DEVICE_INTERVAL, result.getDeviceRefreshInterval());
          return model;
      }
docs: Gets device token response model.
  
  @param result the result
  @return the device token response model