code: static void processServerConfig(final Resource root, final RequiredConfigurationHolder requiredConfigurationHolder, final IgnoredNonAffectedServerGroupsUtil.ServerConfigInfo serverConfig, final ExtensionRegistry extensionRegistry) {
  
          final Set<String> serverGroups = requiredConfigurationHolder.serverGroups;
          final Set<String> socketBindings = requiredConfigurationHolder.socketBindings;
  
          String sbg = serverConfig.getSocketBindingGroup();
          if (sbg != null && !socketBindings.contains(sbg)) {
              processSocketBindingGroup(root, sbg, requiredConfigurationHolder);
          }
  
          final String groupName = serverConfig.getServerGroup();
          final PathElement groupElement = PathElement.pathElement(SERVER_GROUP, groupName);
          // Also check the root, since this also gets executed on the slave which may not have the server-group configured yet
          if (!serverGroups.contains(groupName) && root.hasChild(groupElement)) {
  
              final Resource serverGroup = root.getChild(groupElement);
              final ModelNode groupModel = serverGroup.getModel();
              serverGroups.add(groupName);
  
              // Include the socket binding groups
              if (groupModel.hasDefined(SOCKET_BINDING_GROUP)) {
                  final String socketBindingGroup = groupModel.get(SOCKET_BINDING_GROUP).asString();
                  processSocketBindingGroup(root, socketBindingGroup, requiredConfigurationHolder);
              }
  
              final String profileName = groupModel.get(PROFILE).asString();
              processProfile(root, profileName, requiredConfigurationHolder, extensionRegistry);
          }
      }
docs: Determine the relevant pieces of configuration which need to be included when processing the domain model.
  
  @param root                 the resource root
  @param requiredConfigurationHolder    the resolution context
  @param serverConfig         the server config
  @param extensionRegistry    the extension registry