Buggy code:
public final class ManagedServerOperationsFactory { private static final ModelNode EMPTY = new ModelNode ( ) ; public static ModelNode createBootUpdates ( final String serverName , final ModelNode domainModel , final ModelNode hostModel , final DomainController domainController , final ExpressionResolver expressionResolver ) { } private final String serverName ; private final ModelNode domainModel ; private final ModelNode hostModel ; private final ModelNode serverModel ; private final ModelNode serverGroup ; private final String profileName ; private final DomainController domainController ; ManagedServerOperationsFactory ( final String serverName , final ModelNode domainModel , final ModelNode hostModel , final DomainController domainController ) { } ModelNode getBootUpdates ( ) { } private void addNamespaces ( List < ModelNode > updates ) { } private void addNamespaces ( Map < String , ModelNode > map , ModelNode namespaces ) { } private void addProfileName ( List < ModelNode > updates ) { } private void addSchemaLocations ( List < ModelNode > updates ) { } private void addSchemaLocations ( Map < String , ModelNode > map , ModelNode namespaces ) { } private void addExtensions ( List < ModelNode > updates ) { } private void addExtensions ( Set < String > extensionNames , ModelNode extensions ) { } private void addPaths ( List < ModelNode > updates ) { } private void addPaths ( Map < String , ModelNode > map , ModelNode path ) { } private void addSystemProperties ( List < ModelNode > updates ) { } private Map < String , String > getAllSystemProperties ( boolean boottimeOnly ) { } private void addSystemProperties ( final ModelNode source , final Map < String , String > props , boolean boottimeOnly ) { } private void addVault ( List < ModelNode > updates ) { } private void addVault ( List < ModelNode > updates , ModelNode vaultNode ) { } private void addManagementSecurityRealms ( List < ModelNode > updates ) { } private void addManagementComponentComponent ( ModelNode realm , ModelNode parentAddress , String key , List < ModelNode > updates ) { } private void addManagementConnections ( List < ModelNode > updates ) { } private void addInterfaces ( List < ModelNode > updates ) { } private void addInterfaces ( Map < String , ModelNode > map , ModelNode iface ) { } private void addSocketBindings ( List < ModelNode > updates , int portOffSet , String bindingRef ) { } private void mergeBindingGroups ( List < ModelNode > updates , Map < String , ModelNode > groups , final String groupName , ModelNode group , Set < String > processed ) { addSocketBindings ( updates , group , groupName , group . get ( DEFAULT_INTERFACE ) ) ; if ( ( group . has ( INCLUDES ) ) && ( group . get ( INCLUDES ) . isDefined ( ) ) ) { for ( final ModelNode include : group . get ( INCLUDES ) . asList ( ) ) { final String ref = include . asString ( ) ; if ( processed . add ( ref ) ) { final ModelNode includedGroup = groups . get ( ref ) ; <START_BUG> if ( group == null ) { <END_BUG> throw HostControllerMessages . MESSAGES . undefinedSocketBindingGroup ( ref ) ; } mergeBindingGroups ( updates , groups , groupName , includedGroup , processed ) ; } } } } private void addSocketBindings ( List < ModelNode > updates , ModelNode group , final String groupName , ModelNode defaultInterface ) { } private void addSubsystems ( List < ModelNode > updates ) { } private void addDeployments ( List < ModelNode > updates ) { } public void addDeploymentOverlays ( final List < ModelNode > updates ) { } private ModelNode pathAddress ( PathElement ... elements ) { } private String addPathProperty ( final List < String > command , final String typeName , final String propertyName , final Map < String , String > properties , final DirectoryGrouping directoryGrouping , final File typeDir , File serverDir ) { } static String getAbsolutePath ( final File root , final String ... paths ) { } private class ModelNodeList extends AbstractList < ModelNode > implements List < ModelNode > { private final ModelNode model = new ModelNode ( ) . setEmptyList ( ) ; @ Override public boolean add ( ModelNode modelNode ) { } @ Override public ModelNode get ( int index ) { } @ Override public int size ( ) { } } }

Fix:
if ( includedGroup == null ) {