protected static Response errorEntity(String name) {
    HashMap<String, Object> response = new HashMap<String, Object>();
    response.put("message", String.format(message, name));
    response.put("trace", null);
    response.put("status", STATUS);
    return Response.status(STATUS).entity(new JSONObject(response)).type(MediaType.APPLICATION_JSON).build();
  }
Error on some Ambari View property was not set properly
contrib/views/capacity-scheduler/src/main/java/org/apache/ambari/view/capacityscheduler/utils/MisconfigurationFormattedException.java