class SupervisorGroupAPIController {

    @RequestMapping(value = "/group/{groupId}/supervisor/remove/{applyToAll}", method = RequestMethod.DELETE, produces = MediaType.APPLICATION_JSON_VALUE)
    @ResponseBody
    public AcmGroup removeSupervisorFromGroup(@PathVariable("groupId") String groupId,
            @PathVariable("applyToAll") boolean applyToAll) throws AcmUserActionFailedException
    {
        groupId = new String(Base64.getUrlDecoder().decode(groupId.getBytes()));
        LOG.info("Removing supervisor from the group with ID = [{}]", groupId);
        return groupService.removeSupervisor(groupId, applyToAll);
    }

}