class GetComplaintListOfValuesAPIController {

    @RequestMapping(value = "types", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
    public @ResponseBody List<String> getComplaintTypes()
    {
        List<StandardLookupEntry> lookupEntries = (List<StandardLookupEntry>) getLookupDao().getLookupByName("complaintTypes").getEntries();
        return lookupEntries.stream().map(StandardLookupEntry::getKey).collect(Collectors.toList());
    }

}