class GetComplaintListOfValuesAPIController {

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

}