class AccountController {

	@PreAuthorize("hasRole('ROLE_ADMIN')")
	@RequestMapping(value = "/user/{username}", method = RequestMethod.DELETE)
	@ResponseBody
	public void deleteUser(@PathVariable("username") String username, HttpServletResponse response) {
		OadrUser findByUsername = oadrUserService.findByUsername(username);
		if (findByUsername == null) {
			LOGGER.warn("Unknown User: " + username);
			response.setStatus(HttpStatus.NOT_FOUND_404);
			return;
		}
		oadrUserService.delete(findByUsername);
		LOGGER.info("Delete Ven: " + findByUsername.getUsername());
	}

}