code: public int addServerRedirectToProfile(String region, String srcUrl, String destUrl, String hostHeader,
                                            int profileId, int clientId) throws Exception {
          int serverId = -1;
  
          try {
              Client client = ClientService.getInstance().getClient(clientId);
              serverId = addServerRedirect(region, srcUrl, destUrl, hostHeader, profileId, client.getActiveServerGroup());
          } catch (Exception e) {
              e.printStackTrace();
          }
  
          return serverId;
      }
docs: Add server redirect to a profile, using current active ServerGroup
  
  @param region region
  @param srcUrl source URL
  @param destUrl destination URL
  @param hostHeader host header
  @param profileId profile ID
  @return ID of added ServerRedirect
  @throws Exception exception