@Override
  public void execute(HttpServletRequest req, HttpServletResponse resp, ConfigService configService)
      throws IOException {
    String pvName = req.getParameter("pv");
    logger.debug("Checking to see if we are archiving PV " + pvName);

    resp.addHeader(MimeResponse.ACCESS_CONTROL_ALLOW_ORIGIN, "*");
    resp.setContentType(MimeTypeConstants.APPLICATION_JSON);

    if (pvName == null || pvName.equals("")) {
      resp.sendError(HttpServletResponse.SC_NOT_FOUND);
      return;
    }

    // String pvNameFromRequest = pvName;
    String realName = configService.getRealNameForAlias(pvName);
    if (realName != null) pvName = realName;

    HashMap<String, String> retVal = new HashMap<String, String>();

    PVTypeInfo typeInfo = configService.getTypeInfoForPV(pvName);
    if (typeInfo == null) {
      typeInfo = configService.getTypeInfoForPV(PVNames.stripFieldNameFromPVName(pvName));
      if (typeInfo == null) {
        retVal.put("status", Boolean.FALSE.toString());
      } else {
        retVal.put("status", Boolean.TRUE.toString());
      }
    } else {
      retVal.put("status", Boolean.TRUE.toString());
    }

    try (PrintWriter out = resp.getWriter()) {
      out.println(JSONValue.toJSONString(retVal));
    } catch (Exception ex) {
      logger.error("Exception checking if we are archiving pv " + pvName, ex);
      resp.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
    }
  }