@RequestMapping(value = {"createUser"})
  public @ResponseBody String createUser(
      @RequestParam("username") String username,
      @RequestParam(required = true, value = "password") String password,
      @RequestParam(required = false, value = "roles") String role,
      @RequestParam(required = true, value = "type") String type) {

    CKUser user =
        userApiService.createUser(
            username, password, Lists.newArrayList(role), UserType.valueOf(type));
    return user.toString();
  }
 @RequestMapping(value = "/displayReports", method = RequestMethod.GET)
 public ModelAndView getReports(
     @RequestParam("userType") String userType, @RequestParam("monthsOld") Integer monthsOld) {
   List<Reporting> rep = reportingService.getReports(UserType.valueOf(userType), monthsOld);
   ModelAndView mv = new ModelAndView();
   if (rep != null && !rep.isEmpty()) {
     long time = rep.get(0).getCycleTimestamp();
     mv.addObject("date", "" + (new Date(time)));
     mv.addObject("rep", rep);
   }
   mv.setViewName("hr/reportingDashboard");
   return mv;
 }