@Override
  public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException {
    try {
      // Retrieving the list of inactive devices from the Feedback service
      List<Device> inactiveDevices = Push.feedback(
          Configuration.getCertificateBytes(), Configuration.CERTIFICATE_PASSWORD,
          Configuration.USE_PRODUCTION_APNS_SERVICE);

      if (inactiveDevices.size() > 0) {
        log.info("Number of inactive devices: " + inactiveDevices.size());
        // get the list of inactive device tokens
        List<String> inactiveDeviceTokens = new ArrayList<String>();
        for (Device device : inactiveDevices) {
          inactiveDeviceTokens.add(device.getToken());
        }
        PushNotificationUtility.enqueueRemovingDeviceTokens(inactiveDeviceTokens);
      }
    } catch (CommunicationException e) {
      log.log(Level.WARNING,
          "Retrieving the list of inactive devives failed with CommunicationException:"
          + e.toString(), e);
    } catch (KeystoreException e) {
      log.log(Level.WARNING,
          "Retrieving the list of inactive devives failed with KeystoreException:" + e.toString(),
          e);
    }
  }