code: public SingleProfileBackup getProfileBackupData(int profileID, String clientUUID) throws Exception {
          SingleProfileBackup singleProfileBackup = new SingleProfileBackup();
          List<PathOverride> enabledPaths = new ArrayList<>();
  
          List<EndpointOverride> paths = PathOverrideService.getInstance().getPaths(profileID, clientUUID, null);
          for (EndpointOverride override : paths) {
              if (override.getRequestEnabled() || override.getResponseEnabled()) {
                  PathOverride pathOverride = new PathOverride();
                  pathOverride.setPathName(override.getPathName());
                  if (override.getRequestEnabled()) {
                      pathOverride.setRequestEnabled(true);
                  }
                  if (override.getResponseEnabled()) {
                      pathOverride.setResponseEnabled(true);
                  }
  
                  pathOverride.setEnabledEndpoints(override.getEnabledEndpoints());
                  enabledPaths.add(pathOverride);
              }
          }
          singleProfileBackup.setEnabledPaths(enabledPaths);
  
          Client backupClient = ClientService.getInstance().findClient(clientUUID, profileID);
          ServerGroup activeServerGroup = ServerRedirectService.getInstance().getServerGroup(backupClient.getActiveServerGroup(), profileID);
          singleProfileBackup.setActiveServerGroup(activeServerGroup);
  
          return singleProfileBackup;
      }
docs: Get the active overrides with parameters and the active server group for a client
  
  @param profileID Id of profile to get configuration for
  @param clientUUID Client Id to export configuration
  @return SingleProfileBackup containing active overrides and active server group
  @throws Exception exception