@RequestMapping(
      value = "/",
      consumes = "application/json",
      produces = "application/json",
      method = RequestMethod.POST)
  @ResponseStatus(value = HttpStatus.CREATED)
  public SystemUserResultBean registerSystemUser(@RequestBody RegistrationBean regBean)
      throws FlockException {
    // curl -u admin:hackme -H "Content-Type:application/json" -X PUT
    // http://localhost:8080/api/v1/profiles -d '{"name":"mikey", "companyName":"Monowai
    // Dev","password":"******"}'
    SystemUser su = regService.registerSystemUser(regBean);

    if (su == null) return new SystemUserResultBean(su);

    Authentication auth = SecurityContextHolder.getContext().getAuthentication();
    return new SystemUserResultBean(su, userProfileService.getUser(auth));
  }