public void AddGroup(HttpContext context)
        {
            int id = 0;

            if (context.Request.Payload.Length > 0)
            {
                string json  = context.Request.Payload.ReadAll();
                Group  group = JsonSerializer.DeserializeJson <Group>(json);
                if (group == null)
                {
                    throw new BadRequestException(BadRequestException.MSG_INVALID_PAYLOAD);
                }
                //create group
                id = _groupHandler.CreateGroup(group.Name);
            }
            else
            {
                //create group with name = ""
                id = _groupHandler.CreateGroup("");
            }

            Group  result     = _groupHandler.GetGroup(id);
            string jsonResult = JsonSerializer.SerializeJson(result);

            context.Response.Headers.Set("Location", ApiBase.API_V1 + "/groups/" + id);
            context.Response.Payload.Write(jsonResult);
            context.Response.Status = HttpStatus.Created;
        }