Buggy code:
if ( serverGroup == null ) { throw new IllegalArgumentException ( ( ( "Domain<seq2seq4repair_space>model<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>contain<seq2seq4repair_space>a<seq2seq4repair_space>server<seq2seq4repair_space>group<seq2seq4repair_space>named<seq2seq4repair_space>'" + serverGroupName ) + "'" ) ) ; } final String profileName = serverGroup . getProfileName ( ) ; final ProfileElement leafProfile = domainModel . getProfile ( profileName ) ; if ( profileName == null ) { throw new IllegalArgumentException ( ( ( "Domain<seq2seq4repair_space>model<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>contain<seq2seq4repair_space>a<seq2seq4repair_space>profile<seq2seq4repair_space>named<seq2seq4repair_space>'" + profileName ) + "'" ) ) ; } list . add ( new ServerNameUpdate ( serverName ) ) ; final Set < String > extensionNames = new LinkedHashSet < String > ( ) ; for ( String name : domainModel . getExtensions ( ) ) { extensionNames . add ( name ) ; } for ( String name : hostModel . getExtensions ( ) ) { extensionNames . add ( name ) ; } for ( String name : extensionNames ) { list . add ( new ServerExtensionAdd ( name ) ) ; } final Set < String > unspecifiedPaths = new HashSet < String > ( ) ; final Map < String , ServerPathAdd > paths = new HashMap < String , ServerPathAdd > ( ) ; for ( final PathElement path : domainModel . getPaths ( ) ) { if ( ! ( path . isSpecified ( ) ) ) { unspecifiedPaths . add ( path . getName ( ) ) ; } else { paths . put ( path . getName ( ) , new ServerPathAdd ( path ) ) ; } } for ( final PathElement path : hostModel . getPaths ( ) ) { unspecifiedPaths . remove ( path . getName ( ) ) ; paths . put ( path . getName ( ) , new ServerPathAdd ( path ) ) ; } for ( final PathElement path : serverElement . getPaths ( ) ) { unspecifiedPaths . remove ( path . getName ( ) ) ; paths . put ( path . getName ( ) , new ServerPathAdd ( path ) ) ; } if ( ( unspecifiedPaths . size ( ) ) > 0 ) { throw new IllegalStateException ( ( "unspecified<seq2seq4repair_space>paths<seq2seq4repair_space>" + unspecifiedPaths ) ) ; } Set < String > unspecifiedInterfaces = new HashSet < String > ( ) ; Map < String , InterfaceElement > interfaces = new HashMap < String , InterfaceElement > ( ) ; for ( InterfaceElement ie : domainModel . getInterfaces ( ) ) { if ( ie . isFullySpecified ( ) ) { interfaces . put ( ie . getName ( ) , ie ) ; } else { unspecifiedInterfaces . add ( ie . getName ( ) ) ; } } for ( InterfaceElement ie : hostModel . getInterfaces ( ) ) { interfaces . put ( ie . getName ( ) , ie ) ; unspecifiedInterfaces . remove ( ie . getName ( ) ) ; } for ( InterfaceElement ie : serverElement . getInterfaces ( ) ) { interfaces . put ( ie . getName ( ) , ie ) ; unspecifiedInterfaces . remove ( ie . getName ( ) ) ; } for ( InterfaceElement interfaceElement : interfaces . values ( ) ) { list . add ( new ServerModelInterfaceAdd ( new org . jboss . as . model . socket . InterfaceAdd ( interfaceElement ) ) ) ; } String bindingRef = serverElement . getSocketBindingGroupName ( ) ; int portOffset = serverElement . getSocketBindingPortOffset ( ) ; if ( bindingRef == null ) { bindingRef = serverGroup . getSocketBindingGroupName ( ) ; portOffset = serverGroup . getSocketBindingPortOffset ( ) ; } list . add ( new ServerPortOffsetUpdate ( portOffset ) ) ; SocketBindingGroupElement domainBindings = domainModel . getSocketBindingGroup ( bindingRef ) ; if ( domainBindings == null ) { domainBindings = new SocketBindingGroupElement ( "domainBindings" ) ; } list . add ( new ServerSocketBindingGroupUpdate ( new org . jboss . as . model . socket . SocketBindingGroupUpdate ( domainBindings . getName ( ) , domainBindings . getDefaultInterface ( ) , Collections . < String > emptySet ( ) ) ) ) ; ServerFactory . processSocketBindings ( domainBindings , list ) ; for ( final String socketInclude : domainBindings . getIncludedSocketBindingGroups ( ) ) { final SocketBindingGroupElement include = domainModel . getSocketBindingGroup ( socketInclude ) ; if ( include == null ) { throw new IllegalStateException ( ( "failed<seq2seq4repair_space>to<seq2seq4repair_space>resolve<seq2seq4repair_space>binding-group<seq2seq4repair_space>" + socketInclude ) ) ; } ServerFactory . processSocketBindings ( include , list ) ; } list . add ( new ServerProfileUpdate ( serverGroup . getProfileName ( ) ) ) ; Set < String > processedSubsystems = new HashSet < String > ( ) ; Set < String > processedProfiles = new HashSet < String > ( ) ; ServerFactory . processProfile ( domainModel , leafProfile , list , processedProfiles , processedSubsystems ) ; for ( ServerGroupDeploymentElement element : serverGroup . getDeployments ( ) ) { final ServerModelDeploymentAdd add = new ServerModelDeploymentAdd ( element . getUniqueName ( ) , element . getRuntimeName ( ) , element . getSha1Hash ( ) ) ; list . add ( add ) ; if ( element . isStart ( ) ) { <START_BUG> list . add ( new org . jboss . as . server . deployment . ServerModelDeploymentStartUpdate ( element . getUniqueName ( ) , element . getRuntimeName ( ) , element . getSha1Hash ( ) ) ) ; <END_BUG> } } } private static void processProfile ( DomainModel domainModel , ProfileElement profile , List < AbstractServerModelUpdate < ? > > list , Set < String > processedProfiles , Set < String > processedSubsystems ) { } private static RuntimeException findDuplicateProfile ( String namespaceURI , String currentProfile , Set < String > processedProfiles , DomainModel domainModel ) { } private static void processSocketBindings ( final SocketBindingGroupElement group , List < AbstractServerModelUpdate < ? > > list ) { } private static < E extends AbstractSubsystemElement < E > > void processSubsystem ( E subsystemElement , List < AbstractServerModelUpdate < ? > > list ) { } }

Fix:
list . add ( new org . jboss . as . server . deployment . ServerModelDeploymentStartUpdate ( element . getUniqueName ( ) ) ) ;