code: @RequestMapping(value = "api/servergroup/{id}", method = RequestMethod.GET)
      public
      @ResponseBody
      ServerGroup getServerGroup(Model model,
                                 @PathVariable int id,
                                 @RequestParam(value = "profileId", required = false) Integer profileId,
                                 @RequestParam(value = "profileIdentifier", required = false) String profileIdentifier) throws Exception {
          if (profileId == null && profileIdentifier == null) {
              throw new Exception("profileId required");
          }
          if (profileId == null) {
              profileId = ProfileService.getInstance().getIdFromName(profileIdentifier);
          }
  
          return ServerRedirectService.getInstance().getServerGroup(id, profileId);
      }
docs: Obtains a server group
  
  @param model
  @param profileId
  @return
  @throws Exception